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

RDBStore#getUpdatesSince should throw SequenceNumberNotFoundException back to the caller in order for Recon to fall back to full snapshot

    XMLWordPrintableJSON

Details

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

    Description

      Recon expects an exception to be thrown in order to fall back to full snapshot when an OM DB delta update cannot be retrieved:

      https://github.com/apache/ozone/blob/5ed0e0a9b4c8355f4cde064cc605bc419dacd9c3/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java#L456-L478

      However, the current logic implies that RDBStore#getUpdatesSince will not ever throw SequenceNumberNotFoundException back to the client (Recon) because it is caught in try-catch. A patch earlier broke this intended behavior.

      Solution:
      Restore the intended behavior by explicitly catching SequenceNumberNotFoundException and throwing it back to the client.

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              smeng Siyao Meng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: