mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
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:
parent
ae7fd00208
commit
864ff66f68
23 changed files with 121 additions and 39 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue