Skip to content

Support modifying segmentInfos.counter in IndexWriter #14362

Open
@guojialiang92

Description

@guojialiang92

Description

Can we support modifying segmentInfos.counter in IndexWriter?
This can be used to skip some segment names when writing.
In the scenario of enabling segment replication in an Elasticsearch cluster, this control can be implemented during primary shard peer recovery and replica shard promotion to avoid segment counter conflicts.

Please help evaluate, if possible, I will submit a Pull Request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions