Repository navigation
[v4.2.1-hotfix] fix: skip folder markers during ETL merge - #27777
Merged
Merged
Conversation
Filter directory and unsupported entries before ETL merge processing, and return a normal error instead of panicking when an unsupported path reaches the reader. Add regression coverage for object-store folder markers and supported extension controls. (cherry picked from commit 25f2851) (cherry picked from commit 3b265f1)
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? |
1 of 7 tasks
XuPeng-SH
added a commit
that referenced
this pull request
Nov 2, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to #27740 and #28943. ## What this PR does / why we need it: Backport two existing fixes to `release/v4.2.1-hotfix-20261026`, in their original order: - `9bf92dc56b` (#27777): skip directory markers and unsupported entries during ETL merge; return an error instead of panicking on unsupported reader paths. - `115c227239` (#28945): rank multi-CN IVF candidates by distance before applying the global candidate limit, preserving better candidates from later streams. Both cherry-picks apply without conflicts and retain identical patch IDs. Only the original four files change. Validation on this release base: full export, compile, Top and MergeTop package tests in normal and race modes; IVF planner direction/pagination/INCLUDE controls; incremental lint, vet and formatting. Existing multi-CN IVF BVT: 26/26 statements pass twice on one local two-CN cluster, with schema cleanup checked after each run. IVF global ranking consumes all emitted partition candidates and adds sorting work. The source PR reported about 27% higher median latency on one historical million-row fixture; that benchmark was not rerun here. The local BVT is a topology smoke test; deterministic competing-stream ordering is covered by generated-operator tests. CI is pending. --------- Co-authored-by: GreatRiver <[email protected]> Co-authored-by: aptend <[email protected]> Co-authored-by: iamlinjunhong <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #27740
What this PR does / why we need it:
Cherry-picks the focused fix from #27748 onto
v4.2.1-hotfix.S3-compatible object stores can expose zero-byte folder marker objects while ETL merge scans a log directory. The merge task previously treated every listed entry as a data file, allowing an unsupported marker path to reach
newETLReaderand panic the CN.This backport:
.csvor.taeextension;ErrNotSupportedinstead of panicking if an unsupported path reachesnewETLReader;Backport scope:
v4.2.1-hotfixatd2393868a7aaa6343518d80849fe4696aa3577e9;3b265f1ddcc62cacafa0ab695feeb2e35ab6711f;pkg/util/export/merge.goandpkg/util/export/merge_test.gochange; the unrelated FULLTEXT2 commit from4.2-devis not included.Validation:
TestMergeMainSkipsNonETLEntries,TestIsETLFile, andTest_newETLReader;./pkg/util/exportpackage test passed;git diff --checkpassed;BVT is not applicable because this changes only the internal ETL background file-selection contract and has no SQL-visible behavior.