Skip to content

Commit

Permalink
Fixing gradle errors
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Jun 27, 2022
1 parent 17a824e commit d4ecca2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://opensearch.org/docs/latest/opensearch/rest-api/point_in_time/",
"description":"Creates point in time context."
},
"stability":"stable",
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://opensearch.org/docs/latest/opensearch/rest-api/point_in_time/",
"description":"Deletes all active point in time searches."
},
"stability":"stable",
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url":"https://opensearch.org/docs/latest/opensearch/rest-api/point_in_time/",
"description":"Deletes one or more point in time searches based on the IDs passed."
},
"stability":"stable",
"stability":"experimental",
"url":{
"paths":[
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"Create PIT, Search with PIT ID and Delete":
- skip:
version: " - 2.9.99"
reason: "mode to be introduced later than 3.0"
- do:
indices.create:
index: test_pit
Expand Down Expand Up @@ -88,6 +91,9 @@

---
"Delete all":
- skip:
version: " - 2.9.99"
reason: "mode to be introduced later than 3.0"
- do:
indices.create:
index: test_pit
Expand Down Expand Up @@ -124,6 +130,5 @@
- match: {pits.0.succeeded: true }

- do:
catch: missing
delete_all_pits: { }

- match: { pits: []}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public List<DeletePitInfo> getDeletePitResults() {

@Override
public RestStatus status() {
if(deletePitResults.isEmpty()) return NOT_FOUND;
if (deletePitResults.isEmpty()) return NOT_FOUND;
return OK;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void testSearchWithFirstPhaseKeepAliveExpiry() throws ExecutionException,
// since first phase temporary keep alive is set at 1 second in this test file
// and create pit request keep alive is less than that, keep alive is set to 1 second, (max of 2 keep alives)
// so reader context will clear up after 1 second
Thread.sleep(1000);
Thread.sleep(1200);
client().prepareIndex("index").setId("2").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get();

SearchPhaseExecutionException ex = expectThrows(SearchPhaseExecutionException.class, () -> {
Expand Down

0 comments on commit d4ecca2

Please sign in to comment.