Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10019 Simplify updateLastAppliedIndex in OzoneManagerStateMachine
  3. HDDS-10006

Pass TransactionInfo in OzoneManagerRequestHandler.handleWriteRequest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • OM HA

    Description

      //OzoneManagerRequestHandler
        public OMClientResponse handleWriteRequest(OMRequest omRequest,
            long transactionLogIndex) throws IOException {
      

      In OzoneManagerRequestHandler.handleWriteRequest, only transactionLogIndex is passed without the term. However, it uses a Map/Function to get the term later on. We should pass TransactionInfo, which includes both term and index

      //OzoneManagerDoubleBuffer
      Function<Long, Long> indexToTerm 
      

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: