Skip to content

Commit

Permalink
[Java] Fix a race whereby subscription might try to add an image that…
Browse files Browse the repository at this point in the history
… was already removed when Aeron client gets shutdown.
  • Loading branch information
vyazelenko committed Oct 31, 2024
1 parent 31b0c7e commit f04d14a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void launch()
@AfterEach
void after()
{
CloseHelper.closeAll(clientB, clientA, driverB, driverA);
CloseHelper.closeAll(subscriptionB, subscriptionA, publication, clientB, clientA, driverB, driverA);
}

private static Stream<Arguments> strategyConfigurations()
Expand Down Expand Up @@ -459,10 +459,8 @@ void shouldPreventConnectionUntilAtLeastOneSubscriberConnectedWithRequiredGroupS

subscriptionA = clientA.addSubscription(uriWithGroupTag, STREAM_ID);

while (!publication.isConnected())
{
Tests.sleep(1);
}
Tests.awaitConnected(publication);
Tests.awaitConnected(subscriptionA);
}

@Test
Expand Down

0 comments on commit f04d14a

Please sign in to comment.