-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HUDI-5277] Close HoodieWriteClient before exiting RunClusteringProcedure #7300
[HUDI-5277] Close HoodieWriteClient before exiting RunClusteringProcedure #7300
Conversation
} | ||
} | ||
} finally if (client != null) client.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finally {
if (client != null) {
client.close()
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
49746e2
to
5339b10
Compare
@@ -105,35 +105,41 @@ class RunClusteringProcedure extends BaseProcedure | |||
logInfo(s"Pending clustering instants: ${pendingClustering.mkString(",")}") | |||
|
|||
val client = HoodieCLIUtils.createHoodieClientFromPath(sparkSession, basePath, conf) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var client = null out of try block and put client = HoodieCLIUtils.createHoodieClientFromPath(sparkSession, basePath, conf)
into try block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
5339b10
to
4b44ca1
Compare
Change Logs
Close HoodieWriteClient before exiting RunClusteringProcedure to close the timeline server, so that the whole sparksql program can exit correctly.
Impact
RunClusteringProcedure can exit correctly
Risk level (write none, low medium or high below)
None
Documentation Update
Nothing
Contributor's checklist