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
- breaks
-
IGNITE-24018 Tests from DistributionZoneManager must work for HA zones
- Patch Available
- links to