This is an automated email from the ASF dual-hosted git repository.
jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new 5188f7998 cleanup instance (#2879)
5188f7998 is described below
commit 5188f7998904d71324f8f3a039823e0799dfe2fd
Author: Grant Paláu Spencer <[email protected]>
AuthorDate: Fri Aug 9 12:13:19 2024 -0700
cleanup instance (#2879)
Fix flaky test getAllInstances - clean up added instances
---
.../java/org/apache/helix/rest/server/TestPerInstanceAccessor.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java
index 8ba32e0cc..243406dc7 100644
---
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java
+++
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestPerInstanceAccessor.java
@@ -597,6 +597,9 @@ public class TestPerInstanceAccessor extends
AbstractTestClass {
Assert.assertEquals(response.getStatus(),
Response.Status.OK.getStatusCode());
Assert.assertTrue(evacuateFinishedResult.get("successful"));
+ // Remove instance created for evacuate test
+ delete("clusters/" + CLUSTER_NAME + "/instances/" + test_instance_name,
Response.Status.OK.getStatusCode());
+
// test setPartitionsToError
List<String> partitionsToSetToError = Arrays.asList(CLUSTER_NAME + dbName
+ "7");