Skip to content

branch-4.0: [fix](query) avoid missing result packet for query during master switch #62721#62773

Open
github-actions[bot] wants to merge 1 commit into
branch-4.0from
auto-pick-62721-branch-4.0
Open

branch-4.0: [fix](query) avoid missing result packet for query during master switch #62721#62773
github-actions[bot] wants to merge 1 commit into
branch-4.0from
auto-pick-62721-branch-4.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #62721

@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Apr 24, 2026
@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@yiguolei yiguolei force-pushed the auto-pick-62721-branch-4.0 branch from 2296d67 to 2ecf1a6 Compare May 7, 2026 09:50
…ch (#62721)

When master switch happen, the follower will briefly enter the unknown
state.
At this time, isForwardedToMaster for every request will be determined
as true, and during the finalizeCommand response packet phase, the
master proxy result will be directly used as the result, leading to the
loss of the real ResultPacket. Ultimately, the client remains hung while
waiting for the result to return until the socket timeout.
In fact, point query will never forward to master at present.
@yiguolei yiguolei force-pushed the auto-pick-62721-branch-4.0 branch from 2ecf1a6 to 5fd4aa8 Compare May 9, 2026 08:21
@yiguolei
Copy link
Copy Markdown
Contributor

yiguolei commented May 9, 2026

run buildall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants