Skip to content

Conversation

@y-lakhdar
Copy link
Contributor

Summary

Adds infrastructure for configurable batch sizing in DocumentUploadQueue. This is foundational work that enables services to configure their batch size.

Changes

  • Added constants: MAX_ALLOWED_QUEUE_SIZE (256MB), DEFAULT_QUEUE_SIZE (256MB), BATCH_SIZE_PROPERTY
  • Added getConfiguredBatchSize() static method for system property configuration
  • Added new constructor with maxQueueSize parameter
  • Added validation to prevent exceeding 256MB API limit
  • Updated existing constructor to use getConfiguredBatchSize() as default

Configuration

  • System property: -Dcoveo.push.batchSize=<bytes>
  • Constructor parameter: new DocumentUploadQueue(uploader, maxQueueSize)
  • Priority: constructor > system property > default (256MB)

Testing

  • Updated existing tests
  • All tests pass

Part 2 of 3 - Split from PR #186

Dependencies: Should merge after #187

- Add constants: MAX_ALLOWED_QUEUE_SIZE (256MB), DEFAULT_QUEUE_SIZE (256MB)
- Add BATCH_SIZE_PROPERTY system property for runtime configuration
- Add getConfiguredBatchSize() static method for system property lookup
- Add new constructor with maxQueueSize parameter
- Add validation to prevent exceeding 256MB API limit
- Update existing constructor to use getConfiguredBatchSize() as default

Configuration priority: constructor param > system property > default (256MB)
@y-lakhdar y-lakhdar force-pushed the feat/configurable-batch-size-infrastructure branch from 3230e50 to 380eb01 Compare January 29, 2026 16:18
@y-lakhdar y-lakhdar changed the base branch from main to fix/platform-client-null-userAgents January 29, 2026 16:24
@y-lakhdar y-lakhdar marked this pull request as ready for review January 29, 2026 18:40
@y-lakhdar y-lakhdar requested a review from a team as a code owner January 29, 2026 18:40
lavoiesl
lavoiesl previously approved these changes Jan 29, 2026
@y-lakhdar y-lakhdar changed the base branch from fix/platform-client-null-userAgents to main January 30, 2026 13:44
@y-lakhdar y-lakhdar dismissed lavoiesl’s stale review January 30, 2026 13:44

The base branch was changed.

@y-lakhdar y-lakhdar requested a review from lavoiesl January 30, 2026 13:48
@y-lakhdar y-lakhdar merged commit 8a6116d into main Jan 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants