Skip to content

Commit 4fb4dfb

Browse files
committed
Catch exceptions from delete
1 parent 7dfefcf commit 4fb4dfb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

x-pack/plugin/transform/src/internalClusterTest/java/org/elasticsearch/xpack/transform/checkpoint/TransformGetCheckpointIT.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ private List<String> indices(String prefix, int numberOfIndices) {
213213
}
214214

215215
private void deleteIndices(List<String> indices) {
216-
indicesAdmin().prepareDelete(indices.toArray(new String[0])).get();
216+
try {
217+
indicesAdmin().prepareDelete(indices.toArray(new String[0])).get();
218+
} catch (Exception e) {
219+
// we can fail to clean up the indices, but this wouldn't impact other tests since the node gets torn down anyway
220+
// the index delete is to help the node tear down go smoother
221+
}
217222
}
218223
}

0 commit comments

Comments
 (0)