belugabehr commented on a change in pull request #2312:
URL: https://github.com/apache/hive/pull/2312#discussion_r639711891
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/cache/results/QueryResultsCache.java
##########
@@ -319,9 +312,8 @@ public boolean waitForValidStatus() {
// Status has not changed, continue waiting.
break;
}
-
synchronized (this) {
- this.wait(timeout);
+ this.wait();
Review comment:
This thread is waiting on the state change. Adding a timeout doesn't
cause the loop to exit, instead the thread will just loop and see that there
was no change and `wait` again. This timeout only adds churn.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]