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

Fix ClassCastException when no LATENCY_UTILS_AVAILABLE or HDR_UTILS_AVAILABLE #1830

Closed
wants to merge 1 commit into from
Closed
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
fix #1829
HashJang committed Aug 21, 2021
commit 5473ac245bd0073e5732933ca5f68bc8ee879cdb
Original file line number Diff line number Diff line change
@@ -105,7 +105,12 @@ public void recordCommandLatency(SocketAddress local, SocketAddress remote, Prot
PAUSE_DETECTOR_UPDATER.get(this).retain();
}
}
pauseDetector = ((DefaultPauseDetectorWrapper) PAUSE_DETECTOR_UPDATER.get(this)).getPauseDetector();
PauseDetectorWrapper pauseDetectorWrapper = PAUSE_DETECTOR_UPDATER.get(this);
if (pauseDetectorWrapper instanceof DefaultPauseDetectorWrapper) {
pauseDetector = ((DefaultPauseDetectorWrapper) pauseDetectorWrapper).getPauseDetector();
} else {
return;
}
} while (pauseDetector == null);

PauseDetector pauseDetectorToUse = pauseDetector;