-
Notifications
You must be signed in to change notification settings - Fork 72
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
QueryBatcher never stops when call to get URIs fails #1327
Comments
@ralfhergert, the expectations seem quite sensible and presumably will bear up under investigation. Have you noticed whether the error log or the request log for the appserver on the enode host has a related server-side error? @georgeajit, for what it's worth, my wild guess is that the server is not sending the error in JSON format. If so, the client would be unable to parse it. That is, the fix would have two parts. On the server, the appserver should respect the error format header for all errors. On the client, the catch should provide special handling for the unsupportable timestamp per the expectations given in the issue report. |
I checked for server-side errors, but could not find any 400/500 errors. The AppServer for our database we are trying to retrieve the documents from is listening to port 8040. The AppServer is configured to use "/MarkLogic/rest-api/error-handler.xqy" as "error handler". The log level is currently "info". In fact in 8040_AccessLog.txt I did find the POST-requests for the next pages and all subsequent GET-requests for the single documents. But then the requests suddenly stop. There is no request being answered with a 400 or 500 category response. BTW we are using 9.0-13.4 as server and the java-client in version 5.5.0. |
Thanks, @ralfhergert , for following up. |
@ralfhergert Apologies for the delay in responding. Your diagnosis is correct, and this is the same issue as #1287 - if the call to get URIs fails for any reason, the exception is logged but the job is not stopped and thus it hangs indefinitely. We are tracking this internally but will leave this ticket open as a reminder for us to respond to you when a fix is included in a release. |
Addresses DEVEXP-147 (internal bug). Also enabled a test that had been disabled due to this bug.
#1327 QueryBatcher now stops when query fails
Resolved in 6.1.0 |
We are trying to execute a long running query using withConsistentSnapshot=true. Depending on the configuration of our ML-DB the QueryBatcher may recieve a server error, as soon as the ML-DB is no longer capable of providing the snapshot. That is not an issue. But what is a problem for us is, that the exception thrown in
java-client-api/marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl/QueryBatcherImpl.java
Line 738 in 0d6295d
This is how the log messages looks like, when all worker threads are dying due to a server-side error:
We would expect:
The text was updated successfully, but these errors were encountered: