deardeng opened a new pull request, #66827:
URL: https://github.com/apache/doris/pull/66827
Problem Summary: Loads can reach the ordinary replica quorum before the
configured minimum number of replicas in each availability zone has finished.
Pass backend locations and the cross-AZ quorum policy through optional Thrift
fields, wait for the per-AZ requirement in both BE tablet writers, clamp each
requirement to the replicas actually present, and exclude replicas with version
gaps. The authoritative commit check is provided separately by #66751. Precise
tablet-level quorum-success accounting is intentionally deferred to follow-up
work.
Related PR: #66751
### Release note
Support waiting for configured cross-AZ successful replicas during load.
### Check List (For Author)
- Test: Unit Test and regression test added
- BE unit test attempted with `ENABLE_UNITY_BUILD=OFF ./run-be-ut.sh
--run --filter=TestVTabletWriterV2.* -j16`; blocked during CMake configuration
because current master references missing
`be/src/storage/compaction/collection_statistics.cpp`
- Regression tests not run because they require the FE changes from
#66751
- `build-support/clang-format.sh` and `build-support/check-format.sh`
with clang-format 16 passed
- `build-support/run-clang-tidy.sh --build-dir be/ut_build_ASAN`
attempted; blocked by a toolchain `stddef.h` lookup failure and pre-existing
diagnostics
- Behavior changed: Yes, BE waits for the configured cross-AZ success quorum
before completing load close
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [x] Regression test
- [x] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]