mirror of https://github.com/apache/druid.git
Add supervisor log when task count is greater than partitions (#16948)
* Add log message when task count is higher than partitions * newline * fix ordering * Add supervisor id * Update indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com> * Update indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com> * Update indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com> --------- Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
This commit is contained in:
parent
72f8e79a42
commit
7ee7e194c4
|
@ -2733,6 +2733,10 @@ public abstract class SeekableStreamSupervisor<PartitionIdType, SequenceOffsetTy
|
|||
|
||||
log.debug("Found [%d] partitions for stream [%s]", partitionIdsFromSupplier.size(), ioConfig.getStream());
|
||||
|
||||
final int configuredTaskCount = spec.getIoConfig().getTaskCount();
|
||||
if (configuredTaskCount > partitionIdsFromSupplier.size()) {
|
||||
log.warn("Configured task count[%s] for supervisor[%s] is greater than the number of partitions[%d].", configuredTaskCount, supervisorId, partitionIdsFromSupplier.size());
|
||||
}
|
||||
Map<PartitionIdType, SequenceOffsetType> storedMetadata = getOffsetsFromMetadataStorage();
|
||||
Set<PartitionIdType> storedPartitions = storedMetadata.keySet();
|
||||
Set<PartitionIdType> closedPartitions = storedMetadata
|
||||
|
|
Loading…
Reference in New Issue