Skip to content

Fix duplicated write count in local chunking sample#5309

Closed
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/local-chunking-write-count-5302
Closed

Fix duplicated write count in local chunking sample#5309
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/local-chunking-write-count-5302

Conversation

@answndud
Copy link
Copy Markdown

@answndud answndud commented Mar 4, 2026

Summary

  • remove manual contribution.incrementWriteCount(chunk.size()) from LocalChunkingJobConfiguration
  • rely on framework-managed write count increment in ChunkOrientedStep
  • add write-count assertions in LocalChunkingJobFunctionalTests (success/failure paths)

Why

ChunkOrientedStep#writeChunk already increments write count after a successful write. The sample also incremented it manually, which made the reported write count misleading.

Closes #5302

Signed-off-by: MJY <jmoon0227@gmail.com>
@answndud answndud force-pushed the fix/local-chunking-write-count-5302 branch from 565a03d to 4c6fc9a Compare March 4, 2026 11:55
@answndud
Copy link
Copy Markdown
Author

answndud commented Mar 4, 2026

Closing this PR because #5302 was closed as a duplicate and tracking moved to discussion #5232. I can reopen or submit an updated PR if maintainers want this fix applied.

@answndud answndud closed this Mar 4, 2026
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.

Documentation and sample is misleading for the write count in local chunking

1 participant