[TEST][Monitoring] Remove Unneeded Assert (elastic/x-pack-elasticsearch#4284)

This removes the `assert` that has been causing some very unexpected test
failures due to unexpected threading issues.

Some of the code changed and became async, so it is no longer guaranteed
that the same thread calls `doFlush` and `doClose`. We could similarly
make the field `volatile`, but since this `assert` is not really helping
anything it's easier to remove it.

Original commit: elastic/x-pack-elasticsearch@ba39de605f
This commit is contained in:
Chris Earle 2018-04-03 15:28:48 -04:00 committed by GitHub
parent ca48a22ca7
commit 70e0012ec4
1 changed files with 0 additions and 2 deletions

View File

@ -123,8 +123,6 @@ class HttpExportBulk extends ExportBulk {
@Override @Override
protected void doClose(ActionListener<Void> listener) { protected void doClose(ActionListener<Void> listener) {
// nothing serious to do at this stage
assert payload == null;
listener.onResponse(null); listener.onResponse(null);
} }