Skip to content

Conversation

@Yukang-Lian
Copy link
Collaborator

Proposed changes

Pick #38228 #38265

## Proposed changes

<!--Describe your changes.-->

When client connect to observer and do group commit, observer will
forward to master. The forward parameter `GroupCommitInfo` maybe null,
which leads to an exception.
…ache#38265)

## Proposed changes

<!--Describe your changes.-->

The error message is:

2024-07-23 17:30:09.300 INFO [suite-thread-1]
(StreamLoadAction.groovy:201) - Stream load elapsed 2050 ms, is http
stream: true, response: nulljava.lang.IllegalStateException: Expect
frontend stream load response code is 307, but meet 200
body: {"status":"FAILED","msg":"errCode = 2, detailMessage = Required
field 'user' was not present! Struct: TMasterOpRequest(user:null, db:,
sql:, clientNodeHost:172.20.48.85, clientNodePort:9010,
groupCommitInfo:TGroupCommitInfo(getGroupCommitLoadBeId:true,
groupCommitLoadTableId:10321, isCloud:false))"}

The forward param `TMasterOpRequest`(FrontendService.thrift) has a
required field `user`, which get from ConnectContext. So we set
admin_user to ConnectContext to solve this problem.
@doris-robot
Copy link

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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@Yukang-Lian
Copy link
Collaborator Author

run buildall

@yiguolei yiguolei merged commit 3253011 into apache:branch-2.1 Jul 25, 2024
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
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.

3 participants