Skip to content

Fix chunk synchronization #301

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

Merged
merged 6 commits into from
Jun 5, 2020
Merged

Conversation

aij
Copy link
Contributor

@aij aij commented Jan 21, 2020

The external search command should be sending one chunk response for every chunk received, but extra flushing in the case of large chunks was producing multiple responses per request.

This changes partial flush() to be a noop for v2, and is more explicit about matching up read_chunk and write_chunk calls.

Fixes #150

aij added 6 commits June 3, 2020 16:51
Previously, when an external command used the SCPv2 (chunked=true)
protocol via splunklib and returned with 50,000 or more rows for
one chunk, it would send two replies intead of one. This caused
the external command to get out of sync, sending chunk replies
before reading the corresponding request.

Fixes splunk#150
@amysutedja amysutedja force-pushed the bugfix/DVPL-6821-chunky branch from ab20cc9 to dacd7a5 Compare June 3, 2020 23:57
@amysutedja amysutedja self-assigned this Jun 5, 2020
@amysutedja
Copy link
Contributor

Worked with @aij to dig into this and understand what's going on, and the issue is essentially that the v2 protocol can't deal with partial chunks at all. The fix removes the concept of partial chunking completely for v2. There are a couple of cleanup things we can do, but we'll do them separately. Approving.

@amysutedja amysutedja merged commit bb0d71b into splunk:develop Jun 5, 2020
@fantavlik fantavlik mentioned this pull request Jan 28, 2021
@peterchenadded
Copy link

peterchenadded commented Jun 22, 2021

@aij @amysutedja Can this issue cause data from indexers to randomly go missing?

@l00py l00py mentioned this pull request Oct 28, 2023
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