Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9745

OM fails with Snapshot chain corruption during SnapshotPurge

    XMLWordPrintableJSON

Details

    Description

      After fix of HDDS-9685, the OM fails with Snapshot chain corruption during SnapshotPurge command

       

      2023-11-21 01:47:03,966 ERROR [OM StateMachine ApplyTransaction Thread - 0]-org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine: Terminating with exit status 1: Request cmdType: SnapshotPurge
      clientId: "client-87D53838D7C7"
      SnapshotPurgeRequest {
        snapshotDBKeys: "/vol268/bucket68/cm-tmp-0ace0b68-1ae3-4ae4-b7f3-168593a4bfc7"
        snapshotDBKeys: "/vol268/bucket68/cm-tmp-2ecc9e52-930c-4dcb-b182-536ad6f56748"
      }
       failed with exception
      java.lang.IllegalStateException: Snapshot chain is corrupted.
          at org.apache.hadoop.ozone.om.SnapshotChainManager.validateSnapshotChain(SnapshotChainManager.java:543)
          at org.apache.hadoop.ozone.om.SnapshotChainManager.hasNextPathSnapshot(SnapshotChainManager.java:441)
          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)
      2023-11-21 01:47:03,970 INFO [shutdown-hook-0]-org.apache.ranger.audit.provider.AuditProviderFactory: ==> JVMShutdownHook.run()

       

       

      Attachments

        Issue Links

          Activity

            People

              hemantk Hemant Kumar
              varsha.ravi Varsha Ravi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: