Repository navigation
Conversation
wyxxxcat
requested review from
924060929,
englefly,
morrySnow and
starocean999
as code owners
November 25, 2026 07:57
wyxxxcat
force-pushed
the
insert_begin_txn_idempotent
branch
3 times, most recently
from
November 25, 2026 08:40
70b656b to
09b3dab
Compare
wyxxxcat
force-pushed
the
insert_begin_txn_idempotent
branch
from
November 25, 2026 08:50
09b3dab to
fa47763
Compare
Collaborator
Author
|
run buildall |
Contributor
|
run compile |
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.
Background
In cloud mode, the FE asks Meta Service to begin a transaction before an OLAP INSERT writes any rows. Meta Service uses the label and request ID to recognize repeated begin requests for the same pending transaction.
What problem does this PR solve?
Issue Number: None
Related PR: None
PR Type: Bugfix
Problem Summary:
If Meta Service created the transaction but the FE lost the response, an internal RPC retry could fail the INSERT with
TXN_LABEL_ALREADY_USED. The FE now sends the current query ID as the request ID and continues the INSERT with the original transaction ID when Meta Service recognizes the retry.Details
ctx.queryId()tobeginTransaction()in cloud mode. When Meta Service returnsTXN_DUPLICATED_REQ, take the transaction ID fromDuplicatedRequestException. A separate INSERT with the same label and a different query ID still gets a label conflict while the original transaction is pending.branch-3.1,branch-4.0,branch-4.1, andbranch-4.2.Testing
Compiled
OlapInsertExecutorand its parent class locally with JDK 17 against cached FE dependencies.git diff --checkpassed. No FE unit tests or cluster regression tests were run.Release note
Cloud OLAP INSERT now recovers from a lost begin-transaction response when its RPC retry finds the original pending transaction.
Check List (For Author)
AI Disclosure