[
https://issues.apache.org/jira/browse/HDDS-10408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hemant Kumar updated HDDS-10408:
--------------------------------
Fix Version/s: (was: 1.5.0)
> NPE causes OM crash in Snapshot Purge request
> ---------------------------------------------
>
> Key: HDDS-10408
> URL: https://issues.apache.org/jira/browse/HDDS-10408
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Aswin Shakil
> Assignee: Aswin Shakil
> Priority: Major
> Labels: pull-request-available
>
> When a previous request has already purged the snapshot. There will be a race
> condition between SnapshotDeletingService and Snapshot Purge request. where
> we resend the same request. We can ignore this request as this snapshot is
> already purged.
> {code:java}
> 2024-02-14 21:50:59,574 [OM StateMachine ApplyTransaction Thread - 0] WARN
> org.apache.hadoop.ozone.om.snapshot.SnapshotCache: Key:
> '/vol-yu9w1/buck-kmkp4/snap1707922796' does not exist in cache.
> 2024-02-14 21:50:59,907 [OM StateMachine ApplyTransaction Thread - 0] ERROR
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine: Terminating with
> exit status 1: Request cmdType: SnapshotPurge
> clientId: "client-62D7790F8E6C"SnapshotPurgeRequest {
> snapshotDBKeys: "/vol-yu9w1/buck-kmkp4/snap1707922796"}
> failed with exception
> java.lang.NullPointerException
> at
> org.apache.hadoop.ozone.om.snapshot.SnapshotUtils.getNextActiveSnapshot(SnapshotUtils.java:152)
> at
> org.apache.hadoop.ozone.om.request.snapshot.OMSnapshotPurgeRequest.validateAndUpdateCache(OMSnapshotPurgeRequest.java:99)
> at
> org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:375)
> at
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:568)
> at
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:359)
> at
> java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]