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

[Bug][Flink] EmbeddedExecutorFactory not thread-safe during bootstrap #5080

Closed
3 of 4 tasks
link3280 opened this issue Jul 21, 2023 · 0 comments
Closed
3 of 4 tasks
Labels
kind:bug This is a clearly a bug priority:major

Comments

@link3280
Copy link
Contributor

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

Currently, EmbeddedExecutorFactory that Flink application mode relies on is not thread-safe. If a new SQL is submitted at the same time as the bootstrap SQL, NPE occurs.

See the failed CI https://github.com/apache/kyuubi/actions/runs/5610938813/job/15201466145 for details.

Affects Version(s)

1.8

Kyuubi Server Log Output

No response

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

No response

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
  • No. I cannot submit a PR at this time.
@link3280 link3280 added kind:bug This is a clearly a bug priority:major labels Jul 21, 2023
@link3280 link3280 changed the title [Bug] [Bug] EmbeddedExecutorFactory not thread-safe during bootstrap Jul 21, 2023
@link3280 link3280 changed the title [Bug] EmbeddedExecutorFactory not thread-safe during bootstrap [Bug][Flink] EmbeddedExecutorFactory not thread-safe during bootstrap Jul 21, 2023
link3280 added a commit to link3280/kyuubi that referenced this issue Jul 21, 2023
link3280 added a commit to link3280/kyuubi that referenced this issue Jul 23, 2023
…fe during bootstrap

### _Why are the changes needed?_
As titled.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

Closes apache#5082 from link3280/KYUUBI-5080.

Closes apache#5080

e8026b8 [Paul Lin] [KYUUBI apache#4806][FLINK] Improve logs
fd78f32 [Paul Lin] [KYUUBI apache#4806][FLINK] Fix gateway NPE
a0a7c44 [Cheng Pan] Update externals/kyuubi-flink-sql-engine/src/main/java/org/apache/flink/client/deployment/application/executors/EmbeddedExecutorFactory.java
50830d4 [Paul Lin] [KYUUBI apache#5080][FLINK] Fix EmbeddedExecutorFactory not thread-safe during bootstrap

Lead-authored-by: Paul Lin <paullin3280@gmail.com>
Co-authored-by: Cheng Pan <pan3793@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this issue Jul 24, 2023
…fe during bootstrap

### _Why are the changes needed?_
As titled.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request

Closes apache#5082 from link3280/KYUUBI-5080.

Closes apache#5080

e8026b8 [Paul Lin] [KYUUBI apache#4806][FLINK] Improve logs
fd78f32 [Paul Lin] [KYUUBI apache#4806][FLINK] Fix gateway NPE
a0a7c44 [Cheng Pan] Update externals/kyuubi-flink-sql-engine/src/main/java/org/apache/flink/client/deployment/application/executors/EmbeddedExecutorFactory.java
50830d4 [Paul Lin] [KYUUBI apache#5080][FLINK] Fix EmbeddedExecutorFactory not thread-safe during bootstrap

Lead-authored-by: Paul Lin <paullin3280@gmail.com>
Co-authored-by: Cheng Pan <pan3793@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug priority:major
Projects
None yet
Development

No branches or pull requests

1 participant