[fix](catalog)Fix internal program error causing client to get stuck … (#37821)

…(#37551)

pick: https://github.com/apache/doris/pull/37551
This commit is contained in:
zhangdong
2024-07-16 20:22:47 +08:00
committed by GitHub
parent 9ff129b630
commit adf11737f0
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ public class CatalogFactory {
// If failed, it will throw exception and the catalog will not be created.
try {
catalog.initAccessController(true);
} catch (Exception e) {
} catch (Throwable e) {
LOG.warn("Failed to init access controller", e);
throw new DdlException("Failed to init access controller: " + e.getMessage());
}

View File

@ -56,7 +56,7 @@ public class ReadListener implements ChannelListener<ConduitStreamSourceChannel>
ctx.stopAcceptQuery();
ctx.cleanup();
}
} catch (Exception e) {
} catch (Throwable e) {
LOG.warn("Exception happened in one session(" + ctx + ").", e);
ctx.setKilled();
ctx.cleanup();