Skip to content

Commit

Permalink
[fix](catalog)Fix internal program error causing client to get stuck (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr committed Jul 11, 2024
1 parent 89845dc commit 9902d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private static CatalogIf createCatalog(long catalogId, String name, String resou
// 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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void handleEvent(ConduitStreamSourceChannel channel) {
ctx.stopAcceptQuery();
ctx.cleanup();
}
} catch (Exception e) {
} catch (Throwable e) {
LOG.warn("Exception happened in one session(" + ctx + ").", e);
ctx.setKilled();
ctx.cleanup();
Expand Down

0 comments on commit 9902d59

Please sign in to comment.