Uh oh!
There was an error while loading. Please reload this page.
[Fix](auto-increment) Fix duplicate auto-increment column value problem - #43774
Conversation
doris-robot
commented
Nov 12, 2024
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
bobhan1
commented
Nov 12, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
bobhan1
commented
Nov 12, 2024
run cloud_p0 |
1cfd1ea to
d0e6d79Comparedataroaring
commented
Nov 12, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
bobhan1
commented
Nov 13, 2024
run beut |
d0e6d79 to
18f1c92Comparebobhan1
commented
Nov 13, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
18f1c92 to
6ef086dComparebobhan1
commented
Nov 13, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
6ef086d to
803da63Comparebobhan1
commented
Nov 14, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
803da63 to
ca8de90Comparebobhan1
commented
Nov 14, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Nov 14, 2024
TeamCity be ut coverage result: |
bobhan1
commented
Nov 14, 2024
run p0 |
…em (#43774) ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return _rpc_status; } ``` should be ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return ResultError(_rpc_status); } ``` Otherwise, the returned `Result<int64_t>`'s `m_has_val` will be `true`, then `AutoIncIDBuffer::_launch_async_fetch_task()` will wrongly add an auto-increment range [0, length) to `_buffers` which will cause duplicate value problem. ### Release note Fix duplicate auto-increment column value problem in some situations.
…em (#43774) ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return _rpc_status; } ``` should be ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return ResultError(_rpc_status); } ``` Otherwise, the returned `Result<int64_t>`'s `m_has_val` will be `true`, then `AutoIncIDBuffer::_launch_async_fetch_task()` will wrongly add an auto-increment range [0, length) to `_buffers` which will cause duplicate value problem. ### Release note Fix duplicate auto-increment column value problem in some situations.
…em (apache#43774) ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return _rpc_status; } ``` should be ```cpp Result<int64_t> AutoIncIDBuffer::_fetch_ids_from_fe(size_t length) { // ... return ResultError(_rpc_status); } ``` Otherwise, the returned `Result<int64_t>`'s `m_has_val` will be `true`, then `AutoIncIDBuffer::_launch_async_fetch_task()` will wrongly add an auto-increment range [0, length) to `_buffers` which will cause duplicate value problem. ### Release note Fix duplicate auto-increment column value problem in some situations.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
should be
Otherwise, the returned
Result<int64_t>'sm_has_valwill betrue, thenAutoIncIDBuffer::_launch_async_fetch_task()will wrongly add an auto-increment range [0, length) to_bufferswhich will cause duplicate value problem.Release note
Fix duplicate auto-increment column value problem in some situations.
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)