Skip to content

Commit

Permalink
make gavin happy
Browse files Browse the repository at this point in the history
  • Loading branch information
deardeng authored and dataroaring committed Aug 30, 2024
1 parent eeb5890 commit 6a261c3
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ public void globalBalance() {
}

public void checkInflghtWarmUpCacheAsync() {
Map<Long, List<InfightTask>> beToTabletIds = new HashMap<Long, List<InfightTask>>();
Map<Long, List<InfightTask>> beToInfightTasks = new HashMap<Long, List<InfightTask>>();

for (Map.Entry<InfightTablet, InfightTask> entry : tabletToInfightTask.entrySet()) {
beToTabletIds.putIfAbsent(entry.getValue().destBe, new ArrayList<>());
beToTabletIds.get(entry.getValue().destBe).add(entry.getValue());
beToInfightTasks.putIfAbsent(entry.getValue().destBe, new ArrayList<>());
beToInfightTasks.get(entry.getValue().destBe).add(entry.getValue());
}

List<UpdateCloudReplicaInfo> infos = new ArrayList<>();
for (Map.Entry<Long, List<InfightTask>> entry : beToTabletIds.entrySet()) {
for (Map.Entry<Long, List<InfightTask>> entry : beToInfightTasks.entrySet()) {
LOG.info("before pre cache check dest be {} inflight task num {}", entry.getKey(), entry.getValue().size());
Backend destBackend = cloudSystemInfoService.getBackend(entry.getKey());
if (destBackend == null) {
Expand Down Expand Up @@ -425,13 +425,13 @@ public void checkInflghtWarmUpCacheAsync() {
}

// recalculate inflight beToTablets, just for print the log
beToTabletIds.clear();
beToInfightTasks.clear();
for (Map.Entry<InfightTablet, InfightTask> entry : tabletToInfightTask.entrySet()) {
beToTabletIds.putIfAbsent(entry.getValue().destBe, new ArrayList<>());
beToTabletIds.get(entry.getValue().destBe).add(entry.getValue());
beToInfightTasks.putIfAbsent(entry.getValue().destBe, new ArrayList<>());
beToInfightTasks.get(entry.getValue().destBe).add(entry.getValue());
}

for (Map.Entry<Long, List<InfightTask>> entry : beToTabletIds.entrySet()) {
for (Map.Entry<Long, List<InfightTask>> entry : beToInfightTasks.entrySet()) {
LOG.info("after pre cache check dest be {} inflight task num {}", entry.getKey(), entry.getValue().size());
}
}
Expand Down

0 comments on commit 6a261c3

Please sign in to comment.