Skip to content

Commit

Permalink
fixing TestFeatureResetIT
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 6, 2023
1 parent c1ce720 commit 3de223b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ private void execute() {
executor.accept(currentBulkRequest);
} finally {
currentBulkRequest.close();
currentBulkRequest = new BulkRequest();
currentRamBytes = 0;
}
currentBulkRequest = new BulkRequest();
currentRamBytes = 0;
}
}

@Override
public void close() {
try {
execute();
} finally {
currentBulkRequest.close();
try {
execute();
} finally {
currentBulkRequest.close();
}
}
}
}

0 comments on commit 3de223b

Please sign in to comment.