morningman opened a new pull request, #17791: URL: https://github.com/apache/doris/pull/17791
# Proposed changes Issue Number: close #xxx ## Problem summary The ConnectionContext maybe null, and actually, we don't need ConnectionContext in MasterCatalogExecutor ``` 2023-03-14 01:09:19,201 WARN (thrift-server-pool-1|261) [Util.logAndThrowRuntimeException():545] failed to forward init external db iceberg_catalog operation to master java.lang.NullPointerException: null at org.apache.doris.qe.MasterCatalogExecutor.forward(MasterCatalogExecutor.java:52) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.external.ExternalDatabase.makeSureInitialized(ExternalDatabase.java:115) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.external.HMSExternalDatabase.getTableNamesWithLock(HMSExternalDatabase.java:137) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.catalog.DatabaseIf.getTableNamesOrEmptyWithLock(DatabaseIf.java:103) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.service.FrontendServiceImpl.getTableNames(FrontendServiceImpl.java:531) ~[doris-fe.jar:1.2-SNAPSHOT] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.doris.service.FeServer.lambda$start$0(FeServer.java:57) ~[doris-fe.jar:1.2-SNAPSHOT] at com.sun.proxy.$Proxy30.getTableNames(Unknown Source) ~[?:?] at org.apache.doris.thrift.FrontendService$Processor$getTableNames.getResult(FrontendService.java:1912) ~[fe-common-1.2-SNAPSHOT.jar:1.2-SNAPSHOT] at org.apache.doris.thrift.FrontendService$Processor$getTableNames.getResult(FrontendService.java:1892) ~[fe-common-1.2-SNAPSHOT.jar:1.2-SNAPSHOT] at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38) ~[libthrift-0.16.0.jar:0.16.0] at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38) ~[libthrift-0.16.0.jar:0.16.0] at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:250) ~[libthrift-0.16.0.jar:0.16.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:829) ~[?:?] ``` ## Checklist(Required) * [ ] Does it affect the original behavior * [ ] Has unit tests been added * [ ] Has document been added or modified * [ ] Does it need to update dependencies * [ ] Is this PR support rollback (If NO, please explain WHY) ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org