[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:
@ -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());
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user