-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[filebeat][httpjson] - Added bug-fix for duplicate data issue #33213 #33664
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
@efd6 updated pr with the requested changes. |
Can you construct a test that will fail without this change based on the original issue? |
@efd6 I re-evaluated the fix and saw that we need not mess with the clearInterval() logic. The cursor data was not being updated consistently when chaining with pagination was present and have made changes to fix that, this also fixes any issues we had with the clear interval call. Pagination is avoided for the 1st root level request in the 1st iteration when chaining is present and this is done in a way such that the last_response, last_event & first_event are all properly updated along with any response.transforms or response.split operations. This was not happening initially and it has now been fixed. Added tests to support the same. |
…33664) (#33767) * added bugfix for duplicate data issue #33213 * updated with PR suggetions * updated comments * re-engineered bugfix to update cursors properly * spelling fix (cherry picked from commit afb2beb) Co-authored-by: ShourieG <[email protected]>
Type of change
What does this PR do?
This PR adds a bug-fix for the issue #33213 by getting rid of the if condition which was the culprit, and also putting in
safeguards so the operation remains similar as before and does not break any tests.
Issue: The cursor data was not being updated consistently when chaining with pagination at the root level was present.
This has now been fixed & tests have been added to support the same.
response.split, response.transforms would not work for the initial root response when pagination & chaining were present together. This also has been fixed with this change.
Why is it important?
Fixes a duplicate data bug as reported in the issue #33213
Checklist
- [] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added an entry inCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
Related issues