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

Scale down timer are not working for HA zones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      During the IGNITE-24018 we discovered, that scale down is not working for HA zones. The root cause is the following code in DistributionZoneManager

      if (nodesRemoved) {
          if (zone.consistencyMode() == HIGH_AVAILABILITY) {
              if (partitionReset != INFINITE_TIMER_VALUE) {
                  zonesState.get(zoneId).reschedulePartitionDistributionReset(
                          partitionReset,
                          () -> fireTopologyReduceLocalEvent(revision, zoneId),
                          zoneId
                  );
              }
          } else {
              if (autoAdjustScaleDown == IMMEDIATE_TIMER_VALUE) {
                  futures.add(saveDataNodesToMetaStorageOnScaleDown(zoneId, revision));
              }
      
              if (autoAdjustScaleDown != INFINITE_TIMER_VALUE) {
                  zonesState.get(zoneId).rescheduleScaleDown(
                          autoAdjustScaleDown,
                          () -> saveDataNodesToMetaStorageOnScaleDown(zoneId, revision),
                          zoneId
                  );
              }
          }
      }
      

      Definition of done

      • Scaledown timers are working for HA case also and appropriate tests added

      Attachments

        Issue Links

          Activity

            People

              kgusakov Kirill Gusakov
              kgusakov Kirill Gusakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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