You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the usage of withRefresh() has been removed in the commit 4d4f198 (remove all trace of x-pack security), and the code used for parsing the refresh parameter in High Level Rest Client. Probably we could bring it back.
"refresh" parameter is used in Get and Get Source API, etc.
The related code RefreshPolicy exists outside "x-pack" folder. Although Elasticsearch added a client side version of enum RefreshPolicy in Hight-Level-Rest-Client under x-pack "security" package (by commit elastic/elasticsearch@f063587 ), it is nearly a copy of the original server side enum WriteRequest.RefreshPolicy. The server side RefreshPolicy still valid.
REPRODUCE WITH: ./gradlew ':client:rest-high-level:asyncIntegTest' --tests "org.elasticsearch.client.UpdateByQueryIT.testUpdateByQuery" -Dtests.seed=7C260435FE74FF9A -Dtests.security.manager=true -Dtests.locale=sk-SK -Dtests.timezone=America/Kentucky/Monticello -Druntime.java=15
org.elasticsearch.client.UpdateByQueryIT > testUpdateByQuery FAILED
java.lang.AssertionError: expected:<2> but was:<1>
at __randomizedtesting.SeedInfo.seed([7C260435FE74FF9A:867672C55A50F0DC]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.elasticsearch.client.UpdateByQueryIT.testUpdateByQuery(UpdateByQueryIT.java:105)
ReindexIT.testDeleteByQuery
REPRODUCE WITH: ./gradlew ':client:rest-high-level:asyncIntegTest' --tests "org.elasticsearch.client.ReindexIT.testDeleteByQuery" -Dtests.seed=7C260435FE74FF9A -Dtests.security.manager=true -Dtests.locale=no -Dtests.timezone=MST7MDT -Druntime.java=15
org.elasticsearch.client.ReindexIT > testDeleteByQuery FAILED
java.lang.AssertionError: expected:<2> but was:<3>
at __randomizedtesting.SeedInfo.seed([7C260435FE74FF9A:72E9011EA7BB800C]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.elasticsearch.client.ReindexIT.testDeleteByQuery(ReindexIT.java:225)
CRUDDocumentationIT.testGetSource
REPRODUCE WITH: ./gradlew ':client:rest-high-level:asyncIntegTest' --tests "org.elasticsearch.client.documentation.CRUDDocumentationIT.testGetSource" -Dtests.seed=6920D29241A2C6F7 -Dtests.security.manager=true -Dtests.locale=mt-MT -Dtests.timezone=Pacific/Norfolk -Druntime.java=15
org.elasticsearch.client.documentation.CRUDDocumentationIT > testGetSource FAILED
ElasticsearchStatusException[Elasticsearch exception [type=resource_not_found_exception, reason=Document not found [posts]/[_doc]/[1]]]
at __randomizedtesting.SeedInfo.seed([6920D29241A2C6F7:F329DA9BCC2B1A30]:0)
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:187)SearchDocumentationIT
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1735)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1712)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1469)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1441)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1408)
at org.elasticsearch.client.RestHighLevelClient.getSource(RestHighLevelClient.java:786)
at org.elasticsearch.client.documentation.CRUDDocumentationIT.testGetSource(CRUDDocumentationIT.java:1458)
All the usage of
withRefresh()has been removed in the commit 4d4f198 (remove all trace of x-pack security), and the code used for parsing therefreshparameter in High Level Rest Client. Probably we could bring it back.Reason
Also written in my comment 4d4f198#r46835616.
"refresh" parameter is used in Get and Get Source API, etc.
The related code
RefreshPolicyexists outside "x-pack" folder. Although Elasticsearch added a client side version of enumRefreshPolicyin Hight-Level-Rest-Client under x-pack "security" package (by commit elastic/elasticsearch@f063587 ), it is nearly a copy of the original server side enumWriteRequest.RefreshPolicy. The server sideRefreshPolicystill valid.Affected test:
RequestConvertersTestsin PR [TEST] fix RequestConvertersTests failure #42