Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
Description
The following method is not implemented correctly
private static DynamicState filterChangingBlobsFor(DynamicState dynamicState, final LocalAssignment assignment) { if (!dynamicState.changingBlobs.isEmpty()) { return dynamicState; } HashSet<BlobChanging> savedBlobs = new HashSet<>(dynamicState.changingBlobs.size()); for (BlobChanging rc : dynamicState.changingBlobs) { if (forSameTopology(assignment, rc.assignment)) { savedBlobs.add(rc); } else { rc.latch.countDown(); } } return dynamicState.withChangingBlobs(savedBlobs); }
It doesn't modify dynamicState in anyway.
The solution is to remove the negation in the first if statement.
Attachments
Issue Links
- links to