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

[SDCISA-13736, SDCISA-10974] Apply off-topic changes #547

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ public void loadLuaScript(final RedisCommand redisCommand, int executionCounter)
log.debug("RedisStorage script already exists in redis cache: {}", luaScriptType);
redisCommand.exec(executionCounterIncr);
} else {
log.info("load lua script for script type: {} logutput: {}", luaScriptType, logoutput);
log.info("loading lua script for script type: {} log output: {}", luaScriptType, logoutput);
redisAPI.script(Arrays.asList("load",script), stringAsyncResult -> {
String newSha = stringAsyncResult.result().toString();
log.info("got sha from redis for lua script: {}: {}", luaScriptType, newSha);
if (!newSha.equals(sha)) {
String redisSha = stringAsyncResult.result().toString();
log.info("got sha from redis for lua script: {}: {}", luaScriptType, redisSha);
if (!redisSha.equals(sha)) {
log.warn("the sha calculated by myself: {} doesn't match with the sha from redis: {}. " +
"We use the sha from redis", sha, newSha);
"We use the sha from redis", sha, redisSha);
}
sha = newSha;
sha = redisSha;
log.info("execute redis command for script type: {} with new sha: {}", luaScriptType, sha);
redisCommand.exec(executionCounterIncr);
});
Expand Down