shuke987 opened a new pull request, #65486:
URL: https://github.com/apache/doris/pull/65486
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
`test_mow_table_with_format_v2` used `consumeProcessOutput` to start
asynchronous stdout and stderr reader threads, then called `Process.waitFor()`
and immediately parsed the stdout buffer. `waitFor()` only waits for the curl
process and does not join the reader threads, so the case could intermittently
parse an empty buffer even though `/api/show_config` returned a complete
response.
The same failure signature appeared in P0 build 992109 and Cloud P0 build
983996: curl exited with code 0 and reported receiving the response, while the
captured stdout was still empty at parse time.
This change uses `waitForProcessOutput` to wait for both reader threads
before reading the exit value and parsing the JSON response. The product
assertions and test intent are unchanged.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test (add detailed scripts or steps below)
- Parsed the modified case with the repository's Groovy 4.0.19
runtime.
- Verified `waitForProcessOutput` captures a 51,904-byte stdout
payload before returning.
- `git diff --check` passed.
- [ ] 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:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/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
should merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]