Fix gpload exiting before cleaning up
gpload.cleanupSql() in the `finally` block may throw a `SystemExit` exception, which will not be caught by `except Exception:` and exit before cleaning up others like gpfdist processes. This commit catches `SystemExit`, and do the stop_gpfdists() before cleanupSql() to avoid this situation. Signed-off-by: NAdam Lee <ali@pivotal.io> Signed-off-by: NXiaoran Wang <xiwang@pivotal.io>
Showing
想要评论请 注册 或 登录