-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[fix](catalog) fix wrong check when using "use_meta_cache=true" #36530
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 39812 ms
|
TPC-DS: Total hot run time: 172020 ms
|
ClickBench: Total hot run time: 30.24 s
|
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
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
This is PR #33610 introduce a new feature of `use_meta_cache=true`. And made a wrong check when checking this config. And if user enable the hive metastore even listener for hive catalog, it may causing FE unable to restart due to meta data replay error: ``` 2024-06-19 14:25:32,536 ERROR (stateListener|118) [EditLog.loadJournal():1231] Operation Type 325 java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_341] at org.apache.doris.datasource.ExternalCatalog.replayInitCatalog(ExternalCatalog.java:594) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.CatalogMgr.replayInitCatalog(CatalogMgr.java:584) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:1012) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.Env.replayJournal(Env.java:2779) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.Env.transferToMaster(Env.java:1473) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.Env.access$1400(Env.java:324) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.Env$5.runOneCycle(Env.java:2670) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.2-SNAPSHOT] ``` TODO: add hive event listener test suit in external p0
1. Redundant hashCode of FunctionCallExpr.java This line is redundant, and will cause the amount of hashcode calculation to grow exponentially. 2. A potential deadlock of external catalog The following case may causing this deadlock: - high frequency load. - querying external table join inner table on non-master FE. - refresh external catalog frequently. 3. A workaround to avoid FE restart failure because db does not found introduced from #33610 and fixed in #36530. This PR is to make previous metadata restart successfully.
1. Redundant hashCode of FunctionCallExpr.java This line is redundant, and will cause the amount of hashcode calculation to grow exponentially. 2. A potential deadlock of external catalog The following case may causing this deadlock: - high frequency load. - querying external table join inner table on non-master FE. - refresh external catalog frequently. 3. A workaround to avoid FE restart failure because db does not found introduced from apache#33610 and fixed in apache#36530. This PR is to make previous metadata restart successfully.
1. Redundant hashCode of FunctionCallExpr.java This line is redundant, and will cause the amount of hashcode calculation to grow exponentially. 2. A potential deadlock of external catalog The following case may causing this deadlock: - high frequency load. - querying external table join inner table on non-master FE. - refresh external catalog frequently. 3. A workaround to avoid FE restart failure because db does not found introduced from #33610 and fixed in #36530. This PR is to make previous metadata restart successfully.
This is PR #33610 introduce a new feature of
use_meta_cache=true
.And made a wrong check when checking this config.
And if user enable the hive metastore even listener for hive catalog,
it may causing FE unable to restart due to meta data replay error:
TODO:
add hive event listener test suit in external p0