This file contains hidden or 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); | |
} | |
} |
This file contains hidden or 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
// Add/rename alias | |
if(currentIndex > -1) | |
{ | |
renameAlias(aliasName, buildIndexName(aliasName, currentIndex), indexName); | |
} | |
else | |
{ | |
elasticClient.admin().indices().prepareAliases().addAlias(indexName, aliasName).execute(); | |
} |
This file contains hidden or 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
{ | |
"name": "Debug with mocha", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | |
"stopOnEntry": false, | |
"args": ["--no-timeouts", "--opts", "${workspaceRoot}/test/mocha-debug.opts", "${relativeFile}"], | |
"cwd": "${workspaceRoot}" | |
} |
This file contains hidden or 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
{ | |
"name": "Debug with mocha", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | |
"stopOnEntry": false, | |
"args": ["--no-timeouts", "${relativeFile}"], | |
"cwd": "${workspaceRoot}" | |
} |
OlderNewer