Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2823 SCM HA Support
  3. HDDS-4723

Better handle the case that setting a trx that is earlier than latest trx in SCMDBTransactionBuffer

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      @Override
      public void updateLatestTrxInfo(SCMTransactionInfo info) {
      if (info.compareTo(this.latestTrxInfo) <= 0)

      { throw new IllegalArgumentException( "Updating DB buffer transaction info by an older transaction info, " + "current: " + this.latestTrxInfo + ", updating to: " + info); }

      this.latestTrxInfo = info;
      }

      Right now we throw an exception when such case happen. We could handle it in another way (e.g. like a fatal case so we stop the process).

        Attachments

          Activity

            People

            • Assignee:
              amaliujia Rui Wang
              Reporter:
              amaliujia Rui Wang

              Dates

              • Created:
                Updated:

                Issue deployment