JNSimba opened a new pull request, #68168:
URL: https://github.com/apache/doris/pull/68168
### What problem does this PR solve?
Issue Number: N/A
Related PR: N/A
Problem Summary:
The streaming job lag tests assumed that a single source write immediately
after job creation would always be captured by an `offset=latest` reader. If
the reader initialized after that write, no event remained to initialize the
lag metrics. The PostgreSQL test could also time out while waiting for a
successful task before producing incremental WAL events.
Generate source updates only while the lag metrics are unavailable, so the
tests cross the reader initialization window without adding fixed sleeps or
changing production behavior.
### Release note
None
### Check List (For Author)
- Test
- [x] Regression test
- [ ] Unit Test
- [ ] Manual test
- [ ] No need to test or manual test
Both `test_streaming_postgres_job_lag` and `test_streaming_mysql_job_lag`
passed 5 consecutive runs.
- Behavior changed:
- [x] No.
- [ ] Yes.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]