Skip to content

Instantly share code, notes, and snippets.

@clebertsuconic
Created May 16, 2014 14:55
Show Gist options
  • Save clebertsuconic/e3e6bd691a4ae36618a3 to your computer and use it in GitHub Desktop.
Save clebertsuconic/e3e6bd691a4ae36618a3 to your computer and use it in GitHub Desktop.
public void resendPending() throws Exception
{
// In case the RESET wasn't sent yet to the remote node, we may eventually miss a node send,
// on that case the cluster-reset information will ask the group to resend any pending information
try
{
lock.lock();
if (pendingNotification != null)
{
managementService.sendNotification(pendingNotification);
}
}
finally
{
lock.unlock();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment