You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2023/06/23 09:27:38 UTC
[GitHub] [doris] morningman opened a new pull request, #21104: [fix](catalog) do not call makeSureInitialized when create table from hms meta event
morningman opened a new pull request, #21104:
URL: https://github.com/apache/doris/pull/21104
## Proposed changes
When syncing CreateTableEvent of AlterTableEvent from hive metastore, Doris will write an edit log for it.
And when replaying this edit log, the `makeSureInitialized()` will be called in `createTable()` method.
But when replaying, the Master FE is not ready to serve, but `makeSureInitialized()` may forward some request
to Msater FE, which may cause following error:
```
failed to forward init catalog hive operation to master.
java.lang.Exception: Current catalog is not ready, please wait for a while.
at org.apache.doris.qe.MasterCatalogExecutor.forward(MasterCatalogExecutor.java:46) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.datasource.ExternalCatalog.makeSureInitialized(ExternalCatalog.java:131) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.external.ExternalDatabase.makeSureInitialized(ExternalDatabase.java:110) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.external.HMSExternalDatabase.dropTable(HMSExternalDatabase.java:178) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.datasource.CatalogMgr.replayDropExternalTable(CatalogMgr.java:651) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:954) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.replayJournal(Env.java:2519) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.transferToMaster(Env.java:1286) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.access$1200(Env.java:281) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2417) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.2-SNAPSHOT]
```
In this PR, I remove the `makeSureInitialized()` call in `createTable()` method, because it is wrong and useless.
And also rename the methed's name to make it more clear.
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #21104: [fix](catalog) do not call makeSureInitialized when create table from hms meta event
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21104:
URL: https://github.com/apache/doris/pull/21104#issuecomment-1605417620
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman commented on pull request #21104: [fix](catalog) do not call makeSureInitialized when create table from hms meta event
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on PR #21104:
URL: https://github.com/apache/doris/pull/21104#issuecomment-1604171075
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman merged pull request #21104: [fix](catalog) do not call makeSureInitialized when create table from hms meta event
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #21104:
URL: https://github.com/apache/doris/pull/21104
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #21104: [fix](catalog) do not call makeSureInitialized when create table from hms meta event
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21104:
URL: https://github.com/apache/doris/pull/21104#issuecomment-1605281852
PR approved by anyone and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org