Unique names for bulk processor scheduler threads (#69432)

Today every `BulkProcessor` creates two scheduler threads, both called
`[node-name][scheduler][T#1]`, which is also the name of the main
scheduler thread for the node. The duplicated thread names make it
harder to interpret a thread dump.

This commit makes the names of these threads distinct.

Closes #68470
This commit is contained in:
David Turner 2021-03-04 12:05:24 +00:00 committed by GitHub
parent ae7fd00208
commit 864ff66f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 121 additions and 39 deletions

View file

@ -193,7 +193,7 @@ public class CCSDuelIT extends ESRestTestCase {
public void afterBulk(long executionId, BulkRequest request, Throwable failure) {
throw new AssertionError("Failed to execute bulk", failure);
}
}).build();
}, "CCSDuelIT").build();
int numQuestions = randomIntBetween(50, 100);
for (int i = 0; i < numQuestions; i++) {