Created
April 10, 2016 06:11
-
-
Save suresk/03a9374323b8c9a51389f565c1a4ec75 to your computer and use it in GitHub Desktop.
Elasticsearch clear lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void releaseLock(String aliasName) | |
{ | |
synchronized (aliasName) | |
{ | |
DeleteRequest deleteRequest = new DeleteRequest().index(LOCK_DIRECTORY).type(LOCK_TYPE).id(aliasName); | |
elasticClient.delete(deleteRequest); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment