elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.53k stars 24.61k forks source link

[CI] HttpClientTests class failing #112618

Open elasticsearchmachine opened 1 week ago

elasticsearchmachine commented 1 week ago

Build Scans:

Reproduction Line:

./gradlew ':modules:ingest-geoip:test' --tests "org.elasticsearch.ingest.geoip.HttpClientTests.testGetBytes404" -Dtests.seed=8D48AF73342224BF -Dtests.locale=sbp-TZ -Dtests.timezone=America/Punta_Arenas -Druntime.java=23

Applicable branches: 8.15

Reproduces locally?: N/A

Failure History: See dashboard&_a=(controlGroupInput:(chainingSystem:HIERARCHICAL,controlStyle:twoLine,ignoreParentSettings:(ignoreFilters:!f,ignoreQuery:!f,ignoreTimerange:!f,ignoreValidations:!t),panels:('0c0c9cb8-ccd2-45c6-9b13-96bac4abc542':(explicitInput:(dataViewId:fbbdc689-be23-4b3d-8057-aa402e9ed0c5,enhancements:(),fieldName:task.keyword,grow:!t,id:'0c0c9cb8-ccd2-45c6-9b13-96bac4abc542',searchTechnique:wildcard,selectedOptions:!(),singleSelect:!t,title:'Gradle%20Task',width:medium),grow:!t,order:0,type:optionsListControl,width:small),'144933da-5c1b-4257-a969-7f43455a7901':(explicitInput:(dataViewId:fbbdc689-be23-4b3d-8057-aa402e9ed0c5,enhancements:(),fieldName:name.keyword,grow:!t,id:'144933da-5c1b-4257-a969-7f43455a7901',searchTechnique:wildcard,selectedOptions:!('org.elasticsearch.ingest.geoip.HttpClientTests'),title:Test,width:medium),grow:!t,order:2,type:optionsListControl,width:medium),'4e6ad9d6-6fdc-4fcc-bf1a-aa6ca79e0850':(explicitInput:(dataViewId:fbbdc689-be23-4b3d-8057-aa402e9ed0c5,enhancements:(),fieldName:className.keyword,grow:!t,id:'4e6ad9d6-6fdc-4fcc-bf1a-aa6ca79e0850',searchTechnique:wildcard,selectedOptions:!('org.elasticsearch.ingest.geoip.HttpClientTests'),title:Suite,width:medium),grow:!t,order:1,type:optionsListControl,width:medium)))))

Failure Message:

junit.framework.AssertionFailedError: Unexpected exception type, expected ResourceNotFoundException but got java.net.SocketTimeoutException: Read timed out

Issue Reasons:

Note: This issue was created using new test triage automation. Please report issues or feedback to es-delivery.

elasticsearchmachine commented 1 week ago

Pinging @elastic/es-data-management (Team:Data Management)

masseyke commented 6 days ago

I am guessing this is failing because suspend and resume are finally removed from java.lang.Thread in java 23. All of the failing tests are in java 23, and all of the tests in this jvm are failing with java.net.SocketTimeoutException: Read timed out exceptions, and I see this:

        Caused by:
        java.lang.NoSuchMethodError: 'void java.lang.Thread.resume()'
            at __randomizedtesting.SeedInfo.seed([DFD64AA34CF43D86]:0)
            at org.elasticsearch.test.disruption.LongGCDisruption.resumeThreads(LongGCDisruption.java:346)
            at org.elasticsearch.test.disruption.IntermittentLongGCDisruption.simulateLongGC(IntermittentLongGCDisruption.java:82)
            at org.elasticsearch.test.disruption.IntermittentLongGCDisruption$BackgroundWorker.run(IntermittentLongGCDisruption.java:93)
            at java.base/java.lang.Thread.run(Thread.java:1575)