Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7593 Supporting HSync and lease recovery
  3. HDDS-8506

LeaseRecovery failing with NullPointer exception

    XMLWordPrintableJSON

Details

    Description

      OM went down with following error:

      2023-04-28 05:43:54,356 ERROR org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine: Terminating with exit status 1: Request cmdType: RecoverLease
      traceID: ""
      clientId: "client-80DF90154F72"
      version: 3
      RecoverLeaseRequest {
        volumeName: "vol1"
        bucketName: "bucket1"
        keyName: "hbase/MasterData/WALs/ozone-fix2-3.ozone-fix2.root.hwx.site,22001,1682657712029-dead/ozone-fix2-3.ozone-fix2.root.hwx.site%2C22001%2C1682657712029.1682658660845"
      }
      failed with exception
      java.lang.NullPointerException
              at org.apache.hadoop.ozone.om.OzoneAclUtils.isOwner(OzoneAclUtils.java:188)
              at org.apache.hadoop.ozone.om.OzoneAclUtils.checkAllAcls(OzoneAclUtils.java:86)
              at org.apache.hadoop.ozone.om.request.OMClientRequest.checkAcls(OMClientRequest.java:364)
              at org.apache.hadoop.ozone.om.request.OMClientRequest.checkAcls(OMClientRequest.java:215)
              at org.apache.hadoop.ozone.om.request.key.OMKeyRequest.checkKeyAcls(OMKeyRequest.java:343)
              at org.apache.hadoop.ozone.om.request.file.OMRecoverLeaseRequest.validateAndUpdateCache(OMRecoverLeaseRequest.java:133)
              at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:337)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:533)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:324)
              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)

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              pratyush.bhatt Pratyush Bhatt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: