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

[hsync] Lease recovery fails when file has just created without blocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Steps to reproduce:

      1. Create file
      2. Do hsync
      3. Recover lease
      2024-01-23 14:06:21  failed with exception
      2024-01-23 14:06:21 java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
      2024-01-23 14:06:21     at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      2024-01-23 14:06:21     at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      2024-01-23 14:06:21     at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
      2024-01-23 14:06:21     at java.base/java.util.Objects.checkIndex(Objects.java:372)
      2024-01-23 14:06:21     at java.base/java.util.ArrayList.get(ArrayList.java:459)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.om.request.file.OMRecoverLeaseRequest.doWork(OMRecoverLeaseRequest.java:258)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.om.request.file.OMRecoverLeaseRequest.validateAndUpdateCache(OMRecoverLeaseRequest.java:158)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.lambda$0(OzoneManagerRequestHandler.java:412)
      2024-01-23 14:06:21     at org.apache.hadoop.util.MetricUtil.captureLatencyNs(MetricUtil.java:45)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:408)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:559)
      2024-01-23 14:06:21     at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:349)
      2024-01-23 14:06:21     at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
      2024-01-23 14:06:21     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      2024-01-23 14:06:21     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      2024-01-23 14:06:21     at java.base/java.lang.Thread.run(Thread.java:829)
      2024-01-23 14:06:21 2024-01-23 08:36:21,603 [shutdown-hook-0] INFO om.OzoneManagerStarter: SHUTDOWN_MSG:

      Attachments

        Issue Links

          Activity

            People

              ashishk Ashish Kumar
              ashishk Ashish Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: