[BUG] Pull-based ingestion silently accepts a configuration the docs say is unsupported
Describe the bug
The pull-based ingestion docs list rollover under Limitations:
Index rollover is not supported.
OpenSearch nevertheless accepts an index template that combines data_stream: {} with index.ingestion_source.* and performs the rollover. The result is silent N× duplication: every backing index spawns its own Kafka consumer reading the entire topic, so the same Kafka message gets indexed once per active backing index.
The configuration should be rejected, not silently accepted.
Related component
Indexing
To Reproduce
PUT /_index_template/audit-kafka-index-templatecontaining bothdata_stream: {}andtemplate.settings.index.ingestion_source- Trigger creation of the data stream and at least one rollover.
GET /.ds-audit-*/ingestion/_stateshows multiple backing indices inPOLLINGstate at near-identical Kafka offsets.- The same source event appears in multiple backing indices.
Expected behavior
Reject the configuration at the point where a data-stream backing index would be created with index.ingestion_source.* in its resolved settings:
MetadataCreateIndexService: when the resolved settings for a data-stream backing index includeindex.ingestion_source.*, refuse the create with a clear error linking to the documented limitation. (Templates that carryingestion_sourcefor static-index use should still be valid; the rejection is specifically for the data-stream-backing-index path.)MetadataRolloverService: refuse rollover of any alias or data stream whose write index uses an ingestion source.
Error message should reference the documented limitation.
Additional Details
Plugins
- ingestion-kafka
Host/Environment (please complete the following information):
- OpenSearch 3.7.0
Additional context
A separate feature request covers the rollover support (https://github.com/opensearch-project/OpenSearch/issues/22201). This issue is only about rejecting the misuse.