Skip to content

[Optimization] [Remote state] With every election full state shouldn't get uploaded to remote #10682

@shwetathareja

Description

@shwetathareja

Describe the bug
Every time there is election, it bumps up the election term and full cluster state is uploaded to remote. This ensures during version upgrades and other cases, the leader uploads the full state and shouldn't face any compatibility issues. But, the downside is that it will result in uploading a large payload to remote store if the cluster state is in MBs and would result in elections taking longer.

|| lastAcceptedState.term() != clusterState.term()

Expected behavior
There can be optimization where a nodeId with new ephemeralId uploads the full state and in other cases we can skip uploading the full state and just upload the manifest with new term and version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions