Skip to content

Commit

Permalink
temporarily disable clearing on-going, so that we don't trigger recon…
Browse files Browse the repository at this point in the history
…struction repeatitively
  • Loading branch information
jiajunmao committed Aug 22, 2024
1 parent 7346580 commit 4426deb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,12 @@ HeartbeatResponse sendHeartBeat(boolean requestBlockReportLease)
// Loop around all the volumes on this datanode, and check for ZFS failures
for (DatanodeVolumeInfo volInfo : dn.getVolumeReport()) {
if (volInfo.getStorageType() == StorageType.ZFS) {
LOG.info("Heartbeating ZFS");
if (ErasureCodingWorker.ongoingRepairs.isEmpty()) {
List<DnodeAttributes> dnodes = new Tools().getFailedChunks("pool");
if (dnodes == null) {
dnodes = new ArrayList<>();
}
// This means that there is ZFS local failure
for (DnodeAttributes dnode : dnodes) {
// Enable this during real testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ public void run() {

// MLEC - clear repair bookkeeping maps
LOG.info("Clearing ongoing repair map entry {}", getBlockGroup().getBlockId());
ErasureCodingWorker.ongoingRepairs.remove(getBlockGroup().getBlockId());
try {
Thread.sleep(5000);
} catch (Exception e) {
LOG.error("Error while sleeping", e);
}

// ErasureCodingWorker.ongoingRepairs.remove(getBlockGroup().getBlockId());
}
}

Expand Down

0 comments on commit 4426deb

Please sign in to comment.