Skip to content

Conversation

@shuke987
Copy link
Collaborator

@shuke987 shuke987 commented Aug 12, 2025

What problem does this PR solve?

During stream loading, Doris sometimes becomes stuck due to high cpu usage, meaning that Doris fails to retrieve data from the HTTP connection. This issue also prevents the regression test framework from fetching data via HTTP/S3. Since S3 terminates connections that are idle for approximately two minutes, such stalls lead to stream load failures.

This patch introduces an automatic retry mechanism to tolerate these stuck scenarios and ensure successful stream loading.

usage:
streamload { ... retryIfHttpError true }

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • 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
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Contributor

Thearas commented Aug 12, 2025

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?

@shuke987
Copy link
Collaborator Author

run buildall

@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Aug 12, 2025
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hello-stephen hello-stephen merged commit 15f4406 into apache:master Aug 12, 2025
34 of 36 checks passed
shuke987 added a commit to shuke987/doris that referenced this pull request Aug 13, 2025
…by s3 (apache#54613)

During stream loading, Doris sometimes becomes stuck due to high cpu
usage, meaning that Doris fails to retrieve data from the HTTP
connection. This issue also prevents the regression test framework from
fetching data via HTTP/S3. Since S3 terminates connections that are idle
for approximately two minutes, such stalls lead to stream load failures.

This patch introduces an automatic retry mechanism to tolerate these
stuck scenarios and ensure successful stream loading.

usage:
`
streamload {
    ...
    retryIfHttpError true
} `
shuke987 added a commit to shuke987/doris that referenced this pull request Aug 13, 2025
…by s3 (apache#54613)

During stream loading, Doris sometimes becomes stuck due to high cpu
usage, meaning that Doris fails to retrieve data from the HTTP
connection. This issue also prevents the regression test framework from
fetching data via HTTP/S3. Since S3 terminates connections that are idle
for approximately two minutes, such stalls lead to stream load failures.

This patch introduces an automatic retry mechanism to tolerate these
stuck scenarios and ensure successful stream loading.

usage:
`
streamload {
    ...
    retryIfHttpError true
} `
morrySnow pushed a commit that referenced this pull request Aug 14, 2025
dataroaring pushed a commit that referenced this pull request Aug 18, 2025
#54702)

…by s3 (#54613)

During stream loading, Doris sometimes becomes stuck due to high cpu
usage, meaning that Doris fails to retrieve data from the HTTP
connection. This issue also prevents the regression test framework from
fetching data via HTTP/S3. Since S3 terminates connections that are idle
for approximately two minutes, such stalls lead to stream load failures.

This patch introduces an automatic retry mechanism to tolerate these
stuck scenarios and ensure successful stream loading.

usage:
`
streamload {
    ...
    retryIfHttpError true
} `

### 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. -->
    - [ ] Regression test
    - [ ] 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:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.8-merged dev/3.1.0-merged p0_test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants