Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head bf17a8b.
The builder now retains ownership until every append succeeds and cleans all initialized vectors on every error/panic exit; successful return transfers the completed batch without premature cleanup. I also verified that the downstream successful-return ownership issue is intentionally handled by companion PR #27454, so it is not an uncovered path in this PR split.
Validation:
- focused append-failure regression under -race, count=10; passed.
- full pkg/frontend test suite; passed.
- git diff --check passed and review worktree is clean.
No blocking correctness or lifecycle issue found.
Merge Queue Status
This pull request spent 46 minutes 33 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #27406 ## What this PR does / why we need it: Backport #27455 to 4.2-dev. Keep ownership of the query-result metadata batch inside the builder until every metadata field is appended. Any append error releases all previously populated vectors before returning; a successful return transfers the completed batch to its caller. The production fix applied cleanly to the newest 4.2-dev tip. Its regression test was placed into the older 4.2 test layout without bringing unrelated main-only tests. Validation: - TestBuildQueryResultMetaBatchCleansPartialBatchOnAppendFailure - full pkg/frontend suite --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…n#27455) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#27406 ## What this PR does / why we need it: Keeps ownership of the query-result metadata batch inside the builder until every metadata field is appended. Any append error now releases all previously populated vectors before returning; a successful return transfers the completed batch to its caller. ## Tests: - TestBuildQueryResultMetaBatchCleansPartialBatchOnAppendFailure - Test_saveQueryResultMeta - full pkg/frontend suite - CGo-aware go vet for pkg/frontend Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…n#27455) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#27406 ## What this PR does / why we need it: Keeps ownership of the query-result metadata batch inside the builder until every metadata field is appended. Any append error now releases all previously populated vectors before returning; a successful return transfers the completed batch to its caller. ## Tests: - TestBuildQueryResultMetaBatchCleansPartialBatchOnAppendFailure - Test_saveQueryResultMeta - full pkg/frontend suite - CGo-aware go vet for pkg/frontend Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…n#27455) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#27406 ## What this PR does / why we need it: Keeps ownership of the query-result metadata batch inside the builder until every metadata field is appended. Any append error now releases all previously populated vectors before returning; a successful return transfers the completed batch to its caller. ## Tests: - TestBuildQueryResultMetaBatchCleansPartialBatchOnAppendFailure - Test_saveQueryResultMeta - full pkg/frontend suite - CGo-aware go vet for pkg/frontend Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #27406
What this PR does / why we need it:
Keeps ownership of the query-result metadata batch inside the builder until every metadata field is appended. Any append error now releases all previously populated vectors before returning; a successful return transfers the completed batch to its caller.
Tests: