Wei-Chiu Chuang created HDDS-13603:
--------------------------------------

             Summary: [Snapshot] Do not warn a snapshot does not exist after it 
is purged.
                 Key: HDDS-13603
                 URL: https://issues.apache.org/jira/browse/HDDS-13603
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Snapshot
            Reporter: Wei-Chiu Chuang


Cosmetic issue but it was confusing initially.

After snapshot is purged (OMSnapshotPurgeResponse) it invalidates the snapshot 
in the cache: 
https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/snapshot/OMSnapshotPurgeResponse.java#L96

But it's possible the snapshot is not being accessed frequently and is not in 
the cache. And then SnapshotCache.invalidate() will log a WARN regardless, 
which is confusing.

{noformat}
2025-08-22 09:25:35,215 INFO [OM StateMachine ApplyTransaction Thread - 
0]-org.apache.hadoop.ozone.om.request.snapshot.OMSnapshotPurgeRequest: 
Successfully
executed snapshotPurgeRequest: {snapshotDBKeys: 
"/corevol-1/corebuck-1-ecobs/snap1755871568"
} along with updating 
snapshots:{/corevol-1/corebuck-1-ecobs/snap1755879806=SnapshotInfo{snapshotId: 
'963a0fa1-33e3-481d-93ae-327e5b1dc1f4', name: 'snap1755879806', volumeName: 
'corevol-1', bucketName: 'corebuck-1-ecobs', snapshotStatus: 'SNAPSHOT_ACTIVE', 
creationTime: '1755879817151', deletionTime: '-1', pathPreviousSnapshotId: 
'null', globalPreviousSnapshotId: 'bc78f500-fd39-492d-a4d9-1db14ba08e10', 
snapshotPath: 'corevol-1/corebuck-1-ecobs', checkpointDir: 
'-963a0fa1-33e3-481d-93ae-327e5b1dc1f4', dbTxSequenceNumber: '31810271', 
deepClean: 'true', sstFiltered: 'false'}, 
/corevol-1/corebuck-1-ecfso/snap1755871568=SnapshotInfo{snapshotId: 
'bddfebf6-4efe-469b-9a7f-cb7c8622a6b4', name: 'snap1755871568', volumeName: 
'corevol-1', bucketName: 'corebuck-1-ecfso', snapshotStatus: 'SNAPSHOT_ACTIVE', 
creationTime: '1755871578733', deletionTime: '-1', pathPreviousSnapshotId: 
'null', globalPreviousSnapshotId: 'abb51fb4-d2c6-425c-a5aa-0ead0d5c379a', 
snapshotPath: 'corevol-1/corebuck-1-ecfso', checkpointDir: 
'-bddfebf6-4efe-469b-9a7f-cb7c8622a6b4', dbTxSequenceNumber: '12444649', 
deepClean: 'true', sstFiltered: 'false'}}.
2025-08-22 09:25:35,215 WARN 
[OMDoubleBufferFlushThread]-org.apache.hadoop.ozone.om.snapshot.SnapshotCache: 
Key: '/corevol-1/corebuck-1-ecobs/snap1755871568' does not exist in cache.
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to