Skip to content

[branch-4.1][fix](regression) Use local HTTP resources in TVF test - #65313

Merged
yiguolei merged 1 commit into
apache:branch-4.1from
Gabriel39:codex/backport-65299-branch-4.1
Jul 8, 2026
Merged

yiguolei merged 1 commit into
apache:branch-4.1from
Gabriel39:codex/backport-65299-branch-4.1

Conversation

@Gabriel39

Copy link
Copy Markdown
Contributor

Proposed changes

Backport #65299 to branch-4.1.

This updates the HTTP TVF regression test to serve local regression-test/data files through an in-process HTTP server instead of fetching raw GitHub-hosted URLs.

Notes

Resolved the suite-tag conflict by preserving branch-4.1's existing p2 classification.

Validation

  • git diff --check origin/branch-4.1..codex/backport-65299-branch-4.1
  • Verified all local regression-test/data files referenced by httpUrl(...) exist on the backport branch.

@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?

@Gabriel39
Gabriel39 marked this pull request as ready for review July 7, 2026 08:15
@Gabriel39
Gabriel39 requested a review from yiguolei as a code owner July 7, 2026 08:15
@Gabriel39

Copy link
Copy Markdown
Contributor Author

run buildall

@yiguolei
yiguolei merged commit 509c258 into apache:branch-4.1 Jul 8, 2026
32 of 35 checks passed
yiguolei pushed a commit that referenced this pull request Jul 23, 2026
### What problem does this PR solve?

`test_http_tvf` starts an in-process HTTP server on the regression
runner and asks Doris BE nodes to read from it. In branch-4.1 P2 build
203694, `externalEnvIp` is `127.0.0.1`, so the case builds a URL such as
`http://127.0.0.1:46739/...`. The remote BE interprets loopback as
itself and fails with `Connection refused`.

### What is changed?

Keep an explicit `httpTvfHost` override, but reject loopback/any-local
values inherited from `externalEnvIp` and fall back to the runner host
address.

TeamCity:
http://172.20.48.17:8111/buildConfiguration/Doris_Doris_x64_branch41_Regression_P2/203694
Related backport: #65313
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