Skip to content

Commit f195285

Browse files
authored
Compare numbers with equals() instead of == (opensearch-project#15366)
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
1 parent 689cfca commit f195285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/opensearch/transport/nio/MockNioTransport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private void logLongRunningExecutions() {
467467
final Thread thread = entry.getKey();
468468
final String stackTrace = Arrays.stream(thread.getStackTrace()).map(Object::toString).collect(Collectors.joining("\n"));
469469
final Thread.State threadState = thread.getState();
470-
if (blockedSinceInNanos == registry.get(thread)) {
470+
if (blockedSinceInNanos.equals(registry.get(thread))) {
471471
logger.warn(
472472
"Potentially blocked execution on network thread [{}] [{}] [{} milliseconds]: \n{}",
473473
thread.getName(),

0 commit comments

Comments
 (0)