zhangshenghang opened a new pull request, #12645:
URL: https://github.com/apache/seatunnel/pull/12645

   ## Purpose of the pull request
   
   `VictoriaMetricsIT` sleeps a fixed 30 seconds after the remote-write job 
before querying `metric_1`. If ingestion takes longer than 30s under CI load, 
`metrics.get(0)` throws `IndexOutOfBoundsException` (or the value assertion 
fails) and the test fails intermittently; when ingestion is fast, the test 
still wastes 30 seconds.
   
   This PR replaces the fixed sleep with bounded `Awaitility` polling (`atMost 
60s`, `pollInterval 2s`, `ignoreExceptions`) around the unchanged query + 
assertions, so the test proceeds as soon as the samples are queryable and only 
fails if the data does not become queryable within the timeout.
   
   ## Verification
   
   - `./mvnw spotless:apply`
   - `./mvnw -pl 
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-prometheus-e2e -am 
-DskipTests package`
   
   No assertion / expected value was changed — only how long and how often the 
test waits before evaluating them.
   


-- 
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]

Reply via email to