Skip to content

Commit

Permalink
Merge request apache#113 from EasyOLAP:1.2-merge on 2023-11-14 14:39:37
Browse files Browse the repository at this point in the history
[trace](bug) trace thread exit bug for doris tablet info collector
  • Loading branch information
caiconghui1 committed Nov 14, 2023
2 parents 162a7fa + 5a30d63 commit e660d81
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,19 @@ protected void runAfterCatalogReady() {
result.getTabletsStatsSize());
updateTabletStat(backend.getId(), result);
ok = true;
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
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) {
e.printStackTrace();
LOG.warn("task exec error. backend[{}]", backend.getId(), e);
}
}
});
Expand Down

0 comments on commit e660d81

Please sign in to comment.