You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "link3280 (via GitHub)" <gi...@apache.org> on 2023/07/22 03:34:35 UTC
[GitHub] [kyuubi] link3280 commented on a diff in pull request #5082: [WIP][KYUUBI #5080][FLINK] Fix EmbeddedExecutorFactory not thread-safe during bootstrap
link3280 commented on code in PR #5082:
URL: https://github.com/apache/kyuubi/pull/5082#discussion_r1271237907
##########
externals/kyuubi-flink-sql-engine/src/main/java/org/apache/flink/client/deployment/application/executors/EmbeddedExecutorFactory.java:
##########
@@ -105,6 +114,24 @@ public boolean isCompatibleWith(final Configuration configuration) {
public PipelineExecutor getExecutor(final Configuration configuration) {
checkNotNull(configuration);
Collection<JobID> executorJobIDs;
+ synchronized (bootstrapLock) {
Review Comment:
IMH, if `bootstrapJobIds == null`, the current thread would release the lock and wait for `bootstrapLock.notifyAll()` to be called by the bootstrap thread.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org