Currently if Hadoop indexing has only one shard to generate for a particular time range, it will use NoneShardSpec. Using NumberedShardSpec(0, 1) instead of NoneShardSpec would help allocateSegment flows (like the Kafka indexing service) coexist with Hadoop indexing. allocateSegment (see #1896) depends on existing segment sets being extensible, which NoneShardSpec is not.
This could be an across the board change or it could be optional. I don't see any real usefulness for NoneShardSpec, so I lean towards making this change across the board.
Currently if Hadoop indexing has only one shard to generate for a particular time range, it will use NoneShardSpec. Using NumberedShardSpec(0, 1) instead of NoneShardSpec would help allocateSegment flows (like the Kafka indexing service) coexist with Hadoop indexing. allocateSegment (see #1896) depends on existing segment sets being extensible, which NoneShardSpec is not.
This could be an across the board change or it could be optional. I don't see any real usefulness for NoneShardSpec, so I lean towards making this change across the board.