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

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

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • 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

            amaliujia Rui Wang
            amaliujia Rui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: