René's URL Explorer Experiment


Title: IllegalArgumentException when starting a QueryBatcher · Issue #1872 · marklogic/java-client-api · GitHub

Open Graph Title: IllegalArgumentException when starting a QueryBatcher · Issue #1872 · marklogic/java-client-api

X Title: IllegalArgumentException when starting a QueryBatcher · Issue #1872 · marklogic/java-client-api

Description: When we run our integration test-suite especially the tests using the DataMovementManager and a QueryBatcher. The LinkedBlockingQueue used in QueryBatcherImpl#QueryThreadPoolExecutor (QueryBatcherImpl line 1132) is throwing an IllegalArg...

Open Graph Description: When we run our integration test-suite especially the tests using the DataMovementManager and a QueryBatcher. The LinkedBlockingQueue used in QueryBatcherImpl#QueryThreadPoolExecutor (QueryBatcherI...

X Description: When we run our integration test-suite especially the tests using the DataMovementManager and a QueryBatcher. The LinkedBlockingQueue used in QueryBatcherImpl#QueryThreadPoolExecutor (QueryBatcherI...

Opengraph URL: https://github.com/marklogic/java-client-api/issues/1872

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IllegalArgumentException when starting a QueryBatcher","articleBody":"When we run our integration test-suite especially the tests using the DataMovementManager and a QueryBatcher. The LinkedBlockingQueue used in QueryBatcherImpl#QueryThreadPoolExecutor (QueryBatcherImpl line 1132) is throwing an IllegalArgumentException because the poolSize is calculated to be -1. The line in question is QueryBatcherImpl#1132:\n```\nnew LinkedBlockingQueue\u003c\u003e((forestsLength * docToUriBatchRatio * 2) +  threadCount)\n```\nwith forestsLength=1, **docToUriBatchRatio=-1**, threadCount=1\n\nIt is wierd that `docToUriBatchRatio` is -1. Having a look at QueryBatcherImpl#withBatchSize (line 296), which is called in our case:\n```\npublic QueryBatcher withBatchSize(int docBatchSize) {\n    if (docBatchSize \u003e this.maxUriBatchSize) {\n      logger.debug(\"docBatchSize is beyond maxDocBatchSize, which is {}.\", this.maxUriBatchSize);\n    }\n    if (docBatchSize \u003c 1) {\n      throw new IllegalArgumentException(\"docBatchSize cannot be less than 1\");\n    }\n    requireNotStarted();\n    super.withBatchSize(docBatchSize);\n    this.docToUriBatchRatio = Math.min(this.maxDocToUriBatchRatio, this.maxUriBatchSize / docBatchSize);\n    if (this.docToUriBatchRatio == 0) {\n      this.docToUriBatchRatio = 1;\n    }\n    return this;\n  }\n```\nit happens in line 305 due to maxDocToUriBatchRatio being -1. This -1 is taken from the forest-response given by the MarkLogic server in DataMovementServices#initConfig (line 64). (The else-branch in line 67 is not visited in our case.)\n\nSolutions:\nIt feels like the maxDocToUriBatchRatio=-1 given by the MarkLogic server is supposed to mean something like \"undefined\" or \"unlimited\". Using the -1 in the calculation for the thread pool size seems oddly wrong. If so intended, we would appreciate a proper error message like \"QueryBatcher can not be started ...\". Currently just an IllegalArgumentException without any message is thrown by the Java's native LinkedBlockingQueue.","author":{"url":"https://github.com/ralfhergert","@type":"Person","name":"ralfhergert"},"datePublished":"2026-01-02T16:18:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1872/java-client-api/issues/1872"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b1b04ea1-f1a1-e21a-37fd-269bd133fe87
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA528:10F59A:BB24F:F5F9E:698E9DD6
html-safe-noncee34bfe20543370e4572378cb60598726f446a13e341a50c14ecdc5d4b735d6f8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTI4OjEwRjU5QTpCQjI0RjpGNUY5RTo2OThFOURENiIsInZpc2l0b3JfaWQiOiI4ODUzMjg1NjQxNzE2MTQ1NjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf58778d455e674fe6da1073c7a9923bc1feac63d98c173d08e936e0b132e6b38
hovercard-subject-tagissue:3776685483
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/marklogic/java-client-api/1872/issue_layout
twitter:imagehttps://opengraph.githubassets.com/52a052caea8f17c9bb876bd053846a27d67da754db11bbda0f8fecbc1b8dfa21/marklogic/java-client-api/issues/1872
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/52a052caea8f17c9bb876bd053846a27d67da754db11bbda0f8fecbc1b8dfa21/marklogic/java-client-api/issues/1872
og:image:altWhen we run our integration test-suite especially the tests using the DataMovementManager and a QueryBatcher. The LinkedBlockingQueue used in QueryBatcherImpl#QueryThreadPoolExecutor (QueryBatcherI...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameralfhergert
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/marklogic/java-client-api git https://github.com/marklogic/java-client-api.git
octolytics-dimension-user_id189902
octolytics-dimension-user_loginmarklogic
octolytics-dimension-repository_id17642544
octolytics-dimension-repository_nwomarklogic/java-client-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17642544
octolytics-dimension-repository_network_root_nwomarklogic/java-client-api
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/marklogic/java-client-api/issues/1872#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmarklogic%2Fjava-client-api%2Fissues%2F1872
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmarklogic%2Fjava-client-api%2Fissues%2F1872
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=marklogic%2Fjava-client-api
Reloadhttps://patch-diff.githubusercontent.com/marklogic/java-client-api/issues/1872
Reloadhttps://patch-diff.githubusercontent.com/marklogic/java-client-api/issues/1872
Reloadhttps://patch-diff.githubusercontent.com/marklogic/java-client-api/issues/1872
marklogic https://patch-diff.githubusercontent.com/marklogic
java-client-apihttps://patch-diff.githubusercontent.com/marklogic/java-client-api
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmarklogic%2Fjava-client-api
Fork 74 https://patch-diff.githubusercontent.com/login?return_to=%2Fmarklogic%2Fjava-client-api
Star 59 https://patch-diff.githubusercontent.com/login?return_to=%2Fmarklogic%2Fjava-client-api
Code https://patch-diff.githubusercontent.com/marklogic/java-client-api
Issues 4 https://patch-diff.githubusercontent.com/marklogic/java-client-api/issues
Pull requests 0 https://patch-diff.githubusercontent.com/marklogic/java-client-api/pulls
Actions https://patch-diff.githubusercontent.com/marklogic/java-client-api/actions
Projects 0 https://patch-diff.githubusercontent.com/marklogic/java-client-api/projects
Wiki https://patch-diff.githubusercontent.com/marklogic/java-client-api/wiki
Security 0 https://patch-diff.githubusercontent.com/marklogic/java-client-api/security
Insights https://patch-diff.githubusercontent.com/marklogic/java-client-api/pulse
Code https://patch-diff.githubusercontent.com/marklogic/java-client-api
Issues https://patch-diff.githubusercontent.com/marklogic/java-client-api/issues
Pull requests https://patch-diff.githubusercontent.com/marklogic/java-client-api/pulls
Actions https://patch-diff.githubusercontent.com/marklogic/java-client-api/actions
Projects https://patch-diff.githubusercontent.com/marklogic/java-client-api/projects
Wiki https://patch-diff.githubusercontent.com/marklogic/java-client-api/wiki
Security https://patch-diff.githubusercontent.com/marklogic/java-client-api/security
Insights https://patch-diff.githubusercontent.com/marklogic/java-client-api/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/marklogic/java-client-api/issues/1872
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/marklogic/java-client-api/issues/1872
IllegalArgumentException when starting a QueryBatcherhttps://patch-diff.githubusercontent.com/marklogic/java-client-api/issues/1872#top
https://github.com/ralfhergert
https://github.com/ralfhergert
ralfhergerthttps://github.com/ralfhergert
on Jan 2, 2026https://github.com/marklogic/java-client-api/issues/1872#issue-3776685483
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.