[fix](report handler) fix report handler lock leak (#25853)
This commit is contained in:
@ -590,6 +590,7 @@ public class ReportHandler extends Daemon {
|
||||
private static void sync(Map<Long, TTablet> backendTablets, ListMultimap<Long, Long> tabletSyncMap,
|
||||
long backendId, long backendReportVersion) {
|
||||
TabletInvertedIndex invertedIndex = Env.getCurrentInvertedIndex();
|
||||
OUTER:
|
||||
for (Long dbId : tabletSyncMap.keySet()) {
|
||||
Database db = Env.getCurrentInternalCatalog().getDbNullable(dbId);
|
||||
if (db == null) {
|
||||
@ -612,11 +613,11 @@ public class ReportHandler extends Daemon {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (backendReportVersion < Env.getCurrentSystemInfo().getBackendReportVersion(backendId)) {
|
||||
break;
|
||||
}
|
||||
|
||||
try {
|
||||
if (backendReportVersion < Env.getCurrentSystemInfo().getBackendReportVersion(backendId)) {
|
||||
break OUTER;
|
||||
}
|
||||
|
||||
long partitionId = tabletMeta.getPartitionId();
|
||||
Partition partition = olapTable.getPartition(partitionId);
|
||||
if (partition == null) {
|
||||
|
||||
Reference in New Issue
Block a user