-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-29274][hive] Fix ObjectStore leak when different users has dif… #20887
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
Conversation
yuzelin
left a comment
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.
LGTM. I left several comments, please check out.
| // Trigger the creation of the HiveMetaStoreClient to use the same HiveConf. If the | ||
| // initial HiveConf is different, it will trigger the PersistenceManagerFactory to close | ||
| // all the alive PersistenceManager in the ObjectStore, which may get error like | ||
| // "PersistenceManager is closed" in the later connection. |
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.
The exact exception message is “Persistence Manager has been closed”
| .setDefaultCatalog(catalogName) | ||
| .addSessionConfig(sessionConfig) | ||
| .build()); | ||
| // set variables to HiveConf or Session's 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.
I think this comment line (329) should lay before line 315 0r 319.
|
Thanks for your review. Because the comment is not releated to the code, I will this offline. |
|
The failed test is not releated to the fix. Merging... |
…ferent config This closes #20887
…ferent config This closes apache#20887
This closes apache#20887
…ferent config
What is the purpose of the change
The connection may leak when users have different config. Here, we fix this like hive does to use the same config to create the HiveMetaStoreClient.