Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void processCmd(DeleteCmdInfo cmd) {
// Send ACK back to SCM as long as meta updated
// TODO Or we should wait until the blocks are actually deleted?
if (!containerBlocks.isEmpty()) {
LOG.debug("Sending following block deletion ACK to SCM");
int successCount = 0, failedCount = 0;

for (DeleteBlockTransactionResult result : blockDeletionACK.getResultsList()) {
boolean success = result.getSuccess();
Expand All @@ -392,11 +392,15 @@ private void processCmd(DeleteCmdInfo cmd) {
}

if (success) {
++successCount;
blockDeleteMetrics.incrProcessedTransactionSuccessCount(1);
} else {
++failedCount;
blockDeleteMetrics.incrProcessedTransactionFailCount(1);
}
}
LOG.info("Sending deletion ACK to SCM, successTransactionCount = {}," +
"failedTransactionCount= {}", successCount, failedCount);
}
cmdExecuted = true;
} finally {
Expand Down Expand Up @@ -648,7 +652,7 @@ public static boolean isDuplicateTransaction(long containerId, KeyValueContainer
if (metrics != null) {
metrics.incOutOfOrderDeleteBlockTransactionCount();
}
LOG.info(String.format("Delete blocks for containerId: %d"
LOG.debug(String.format("Delete blocks for containerId: %d"
+ " is received out of order, %d < %d", containerId, delTX.getTxID(),
containerData.getDeleteTransactionId()));
} else if (delTX.getTxID() == containerData.getDeleteTransactionId()) {
Expand Down