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

No fallback to full rebalance after exception on historical

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.11
    • None
    • None
    • Hide
      Nodes will now properly fallback to full rebalance if historical rebalance fails
      Show
      Nodes will now properly fallback to full rebalance if historical rebalance fails
    • Release Notes Required

    Description

      We have noticed that in some cases when we handle demand message in GridDhtPartitionSupplier.java it is possible for some reasons that

      iter = grp.offheap().rebalanceIterator(demandMsg.partitions(), demandMsg.topologyVersion());
      

      throw an exception. In that case, rebalance should switch to full, but the code has a bug and remainingParts has been filed after rebalance iterator has been created

                      for (int i = 0; i < histMap.size(); i++) {
                          int p = histMap.partitionAt(i);
      
                          remainingParts.add(p);
                      }
      

      That means that we lost partitions that meant to be rebalanced by historical rebalance.

      The solution is to create an iterator after remainingParts filling.

      Attachments

        Issue Links

          Activity

            People

              maliev Mirza Aliev
              maliev Mirza Aliev
              Vyacheslav Koptilin Vyacheslav Koptilin
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 20m
                  20m