Skip to content
Merged
Show file tree
Hide file tree
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 @@ -120,7 +120,6 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,

OMMetrics omMetrics = ozoneManager.getMetrics();
omMetrics.incNumSnapshotCreates();
omMetrics.incNumSnapshotActive();

boolean acquiredBucketLock = false, acquiredSnapshotLock = false;
IOException exception = null;
Expand Down Expand Up @@ -228,6 +227,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
if (exception == null) {
LOG.info("Created snapshot '{}' under path '{}'",
snapshotName, snapshotPath);
omMetrics.incNumSnapshotActive();
} else {
omMetrics.incNumSnapshotCreateFails();
LOG.error("Failed to create snapshot '{}' under path '{}'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,

final String snapshotPath = snapshotInfo.getSnapshotPath();
if (exception == null) {
omMetrics.decNumSnapshotActive();
LOG.info("Deleted snapshot '{}' under path '{}'",
snapshotName, snapshotPath);
} else {
Expand Down
Loading