Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16624

tx state doesn't replicate within raft group if tx coordinator is collocated with corresponding raft leader

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha5
    • None

    Description

      private CompletableFuture<Void> finish(boolean commit) {
          ...
          for (Map.Entry<NetworkAddress, Set<String>> entry : tmp.entrySet()) {
              boolean local = address.equals(entry.getKey());
      
              futs[i++] = local ? commit ? txManager.commitAsync(timestamp) : txManager.rollbackAsync(timestamp) :
                      txManager.finishRemote(entry.getKey(), timestamp, commit, entry.getValue());
          }
      
       

      If local is false txManager.finishRemote() will be called that’ll be replicate txState over all raft group members.However if local is true we will only change txState locally.

      Attachments

        Issue Links

          Activity

            People

              alapin Alexander Lapin
              alapin Alexander Lapin
              Alexey Scherbakov Alexey Scherbakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h