damccorm opened a new pull request, #41864:
URL: https://github.com/apache/beam/pull/41864

   Note: this PR was auto-generated by tooling. Before moving it out of draft, 
the author has done a full review of the PR, specifically evaluating it on the 
following criteria:
   
   - The PR is an appropriate fix for the issue (e.g. we're not changing a test 
to avoid a bug)
   - The PR is a simple fix to the issue (e.g. we're not adding infra when we 
could just modify a test)
   - The PR is not covering for other problems (e.g. if we're bumping timeouts, 
it is not because we're covering for a performance problem)
     
   Full details of the methodology of generation and review can be found here - 
https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
   
   If you have concerns with the PR or with the underlying methodology used to 
generate this, please comment below - they will be addressed by the author not 
the tooling :)
   
   ## Summary
   Increases the Testcontainers `ElasticsearchContainer` startup timeout from 
the default 60s to 3 minutes in `HadoopFormatIOElasticTest` and 
`HadoopFormatIOElasticIT`, matching 
`ElasticsearchIOTestUtils.createTestContainer` 
(`sdks/java/io/elasticsearch-tests/elasticsearch-tests-common`).
   
   ## Root Cause
   Both `HadoopFormatIOElasticTest` and `HadoopFormatIOElasticIT` launched 
`docker.elastic.co/elasticsearch/elasticsearch:7.9.2` with Testcontainers' 
default 60s `LogMessageWaitStrategy` timeout. Under parallel CI load on 
self-hosted runners, Elasticsearch 7.9.2 failed to emit its `"started"` log 
line within 60s twice in one day:
   - [PreCommit Java Hadoop IO Direct 
#46696996502](https://github.com/apache/beam/actions/runs/46696996502) 
(`HadoopFormatIOElasticTest > classMethod`, build scan 
https://develocity.apache.org/s/xggngcuc73of6)
   - [PostCommit Java Hadoop Versions 
#46752392107](https://github.com/apache/beam/actions/runs/46752392107) 
(`HadoopFormatIOElasticIT > classMethod`, build scan 
https://develocity.apache.org/s/e4jgfzgovtafc)
   
   ## Changes
   - 
`sdks/java/io/hadoop-format/src/test/java/org/apache/beam/sdk/io/hadoop/format/HadoopFormatIOElasticTest.java`:
 Added `.withStartupTimeout(Duration.ofMinutes(3))` to `elasticsearch`.
   - 
`sdks/java/io/hadoop-format/src/test/java/org/apache/beam/sdk/io/hadoop/format/HadoopFormatIOElasticIT.java`:
 Called `elasticsearch.withStartupTimeout(Duration.ofMinutes(3))` before 
`elasticsearch.start()`.
   
   ## Verification
   - Verified formatting matches google-java-format / 
`ElasticsearchIOTestUtils.java:527-533` (no local JDK 17/21 `javac` on this 
host).
   - Triggered `.github/workflows/beam_PostCommit_Java_Hadoop_Versions.yml` and 
`.github/workflows/beam_PreCommit_Java_Hadoop_IO_Direct.yml` on this branch.
   
   ## Related Failures
   - https://github.com/apache/beam/actions/runs/46752392107
   - https://github.com/apache/beam/actions/runs/46696996502
   
   ### Verification
   - Triggered `.github/workflows/beam_PostCommit_Java_Hadoop_Versions.yml` 
workflow run on branch: 
[`46768420990`](https://github.com/apache/beam/actions/runs/46768420990)
   


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