-
Notifications
You must be signed in to change notification settings - Fork 47
Description
We had issues with ReportingServiceManager.downloadFileAsync().
Some request did not return any answer and were blocked for days until we killed them. So we did some investigation:
This is what we call:
return reportingServiceManager.downloadFileAsync(parameters, null)
.get(TIMEOUT.toSeconds(), SECONDS);
Unfortunately the call of downloadFileAsync() was blocked and no future was returned, so the get with timeout could not work and we never get any response or TimeOutException.
We debugged into the code and we found, that the internal call to service.submitGenerateReportAsync(submitRequest, new AsyncHandler() did not answer and through this the whole call is blocked. We were not able to check what happens inside of submitGenerateReportAsync but in our opinion the call should always return the future or throw an exception.
Not relevant for this issue, but here is another call that may be blocking. the serviceClient.getService() may do some OAuthToken refreshing in refreshOAuthTokensIfNeeded() which do some external calls, which then may be blocking. This would be another case that would block the whole downloadCall without returning any future.