Skip to content

Commit

Permalink
[JD][trace](bug) trace thread exit bug for doris tablet info collector
Browse files Browse the repository at this point in the history
  • Loading branch information
caiconghui1 committed Jan 17, 2024
2 parents b19c713 + c78bf86 commit f61fccc
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,17 @@ protected void runAfterCatalogReady() {
result.getTabletsStatsSize());
updateTabletStat(backend.getId(), result);
ok = true;
} catch (Exception e) {
} catch (Throwable e) {
LOG.warn("task exec error. backend[{}]", backend.getId(), e);
} finally {
if (ok) {
ClientPool.backendPool.returnObject(address, client);
} else {
ClientPool.backendPool.invalidateObject(address, client);
try {
if (ok) {
ClientPool.backendPool.returnObject(address, client);
} else {
ClientPool.backendPool.invalidateObject(address, client);
}
} catch (Throwable e) {
LOG.warn("task exec error. backend[{}]", backend.getId(), e);
}
}
});
Expand Down

0 comments on commit f61fccc

Please sign in to comment.