Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-8939

isBlockLocationSame check should be skipped if object is not OmKeyInfo object

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      As part of HDDS-8841, we added a check if block location is same for key object. Somehow isBlockLocationSame function is getting called for non-OmKeyInfo object. We should skip this check is object are not
      OmKeyInfo objects.

      2023-06-27 16:47:41,358 [snapshot-diff-job-thread-id-0] ERROR org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager: Caught unchecked exception during diff report generation for volume: pn5jtpqv bucket: buck1, fromSnapshot: snap1 and toSnapshot: snap2
      java.lang.IllegalStateException: fromObject or toObject is not of OmKeyInfo
              at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.isBlockLocationSame(SnapshotDiffManager.java:1456)
              at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.generateDiffReport(SnapshotDiffManager.java:1377)
              at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.lambda$5(SnapshotDiffManager.java:959)
              at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.generateSnapshotDiffReport(SnapshotDiffManager.java:985)
              at org.apache.hadoop.ozone.om.snapshot.SnapshotDiffManager.lambda$1(SnapshotDiffManager.java:723)
              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

              swamirishi Swaminathan Balachandran
              hemantk Hemant Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: