Test: UpdateTests.stressUpdateDeleteConcurrency shouldn't turn off threaded operations

This may result in all network threads being busy for too long.
This commit is contained in:
Boaz Leskes 2014-11-27 16:30:26 +01:00
parent 0c70b3ca7d
commit cd717ab8e7
1 changed files with 1 additions and 4 deletions

View File

@ -724,7 +724,6 @@ public class UpdateTests extends ElasticsearchIntegrationTest {
.setScript("ctx._source.field += 1", ScriptService.ScriptType.INLINE)
.setRetryOnConflict(retryOnConflict)
.setUpsert(jsonBuilder().startObject().field("field", 1).endObject())
.setListenerThreaded(false)
.request();
client().update(ur, new UpdateListener(j));
} catch (NoNodeAvailableException nne) {
@ -742,9 +741,7 @@ public class UpdateTests extends ElasticsearchIntegrationTest {
try {
deleteRequestsOutstanding.acquire();
DeleteRequest dr = client().prepareDelete("test", "type1", Integer.toString(j))
.setListenerThreaded(false)
.setOperationThreaded(false).request();
DeleteRequest dr = client().prepareDelete("test", "type1", Integer.toString(j)).request();
client().delete(dr, new DeleteListener(j));
} catch (NoNodeAvailableException nne) {
deleteRequestsOutstanding.release();