HttpBackOffIOExceptionHandler and HttpBackOffUnsuccessfulResponseHandler do not restore the interrupted status after catching InterruptionException #1005
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I found this by accident while looking at a different unexpected behavior within my system.
google-http-java-client/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java
Line 100 in 8760ff0
While handling IOException, the HttpBackOffIOExceptionHandler does not rethrow an exception and also does not reset the thread interrupted bit after catching InterruptedException.
See article with explanation: https://dzone.com/articles/why-do-we-need-threadcurrentthreadinterrupt-in-int
Environment details
The text was updated successfully, but these errors were encountered: