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:
parent
0c70b3ca7d
commit
cd717ab8e7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue