RealtimeManager: Include partitionNum in chief thread name.

This commit is contained in:
Gian Merlino 2015-05-04 10:53:48 -07:00
parent 6be596c45e
commit 8eb441ec08
1 changed files with 7 additions and 1 deletions

View File

@ -104,7 +104,13 @@ public class RealtimeManager implements QuerySegmentWalker
}
chiefs.add(chief);
chief.setName(String.format("chief-%s", schema.getDataSource()));
chief.setName(
String.format(
"chief-%s[%s]",
schema.getDataSource(),
fireDepartment.getTuningConfig().getShardSpec().getPartitionNum()
)
);
chief.setDaemon(true);
chief.init();
chief.start();