Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7218

FIFO command does not wait for topology

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.0.Beta1
    • None
    • Core
    • None

    Description

      FIFO order commands are handled in the deliver thread.
      However, they don't wait in the future before checking if the node is a valid member (check code below)

      switch (topologyMode) {
               case WAIT_TOPOLOGY:
                  future = handler.getStateTransferLock().topologyFuture(waitTopology());
                  break;
               case WAIT_TX_DATA:
                  future = handler.getStateTransferLock().transactionDataFuture(waitTopology());
                  break;
               default:
                  break;
            }
            if (handler.isCommandSentBeforeFirstTopology(commandTopologyId)) {
               return future == null ? CompletableFuture.completedFuture(CacheNotFoundResponse.INSTANCE) :
                     future.thenApply(nil -> CacheNotFoundResponse.INSTANCE);
            }
      

      Attachments

        Issue Links

          Activity

            People

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: