Skip to content

fix(core): add additional checks in verifyUniqueWithinMutation for pruned mutations #9478

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

Conversation

matthewmcneely
Copy link
Member

Description

Cherry picked from main (original PR #9450) into release/v24.1

This PR adds additional checks in edgraph/server.go::verifyUniqueWithinMutation for mutations that may have been conditionally pruned in updateMutations (called just before).

Also a basic test verifies not only the prevention of the panic but also assures unpruned mutations were applied. Note this is an improvement upon #9449 in that additional range and inner loop predicate checks were required (@gooohgb).

Checklist

  • Code compiles correctly and linting passes locally
  • For all code changes, an entry added to the CHANGELOG.md file describing and linking to
    this PR
  • Tests added for new functionality, or regression tests for bug fixes added as applicable

…uned mutations (#9450)

This PR adds additional checks in edgraph/server.go
verifyUniqueWithinMutation for mutations that may have been conditionally
pruned in `updateMutations` (called just before).
Mistakenly committed during cherry-pick
@matthewmcneely matthewmcneely requested a review from a team as a code owner August 6, 2025 19:30
@github-actions github-actions bot added area/testing Testing related issues area/documentation Documentation related issues. go Pull requests that update Go code labels Aug 6, 2025
Copy link

trunk-io bot commented Aug 6, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@github-actions github-actions bot added the area/integrations Related to integrations with other projects. label Aug 7, 2025
@matthewmcneely matthewmcneely merged commit 2ad525d into release/v24.1 Aug 7, 2025
13 of 14 checks passed
@matthewmcneely matthewmcneely deleted the matthewmcneely/fix-panic-conditionally-pruned-mutations branch August 7, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related issues. area/integrations Related to integrations with other projects. area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

1 participant