Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2337 : Ensure we break out of reconnect loop when the entity does not exist #2338

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

chrisdennis
Copy link
Member

No description provided.

Copy link
Contributor

@henri-tremblay henri-tremblay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny comments but seems all good

@@ -181,6 +191,14 @@ public void testDestroyCacheWithCacheManagerStopped() throws CachePersistenceExc
assertThat(persistentCacheManager.getStatus(), is(Status.UNINITIALIZED));
}

@Test
public void testDestroyNonExistentCacheWIthCacheManagerStopped() throws CachePersistenceException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'I' should be lowercase

reconnect();
retrieveEntity();
connectionRecoveryListener.run();
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be a break. To look like the rest of the code

connectionRecoveryListener.run();
return;
} catch (ConnectionClosedException | ConnectionShutdownException e) {
LOGGER.info("Disconnected to the server", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the server?

@chrisdennis chrisdennis force-pushed the issue-2337 branch 2 times, most recently from d2f4179 to b633de6 Compare March 16, 2018 14:13
@cljohnso cljohnso merged commit 48b4d66 into ehcache:master Mar 16, 2018
@chrisdennis chrisdennis deleted the issue-2337 branch March 29, 2018 14:18
@henri-tremblay henri-tremblay added this to the 3.5.2 milestone Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants