Skip to content
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

Merged

Conversation

stream2000
Copy link
Contributor

@stream2000 stream2000 commented Nov 24, 2022

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

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

}
}
} finally if (client != null) client.close()
Copy link
Contributor

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()
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@leesf leesf self-assigned this Nov 24, 2022
@stream2000 stream2000 changed the title [MINOR] Close HoodieWriteClient before exiting RunClusteringProcedure [HUDI-5277] Close HoodieWriteClient before exiting RunClusteringProcedure Nov 24, 2022
@stream2000 stream2000 force-pushed the fix_run_clustering_cannot_exit_in_sparksql branch from 49746e2 to 5339b10 Compare November 24, 2022 11:19
@@ -105,35 +105,41 @@ class RunClusteringProcedure extends BaseProcedure
logInfo(s"Pending clustering instants: ${pendingClustering.mkString(",")}")

val client = HoodieCLIUtils.createHoodieClientFromPath(sparkSession, basePath, conf)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@stream2000 stream2000 force-pushed the fix_run_clustering_cannot_exit_in_sparksql branch from 5339b10 to 4b44ca1 Compare November 25, 2022 01:14
@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@leesf leesf merged commit d10d987 into apache:master Nov 25, 2022
satishkotha pushed a commit to satishkotha/incubator-hudi that referenced this pull request Dec 12, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
alexeykudinkin pushed a commit to onehouseinc/hudi that referenced this pull request Dec 14, 2022
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants