Skip to content

Introduce Local checkpoints#15390

Closed
bleskes wants to merge 9 commits intoelastic:feature/seq_nofrom
bleskes:local_checkpoint
Closed

Introduce Local checkpoints#15390
bleskes wants to merge 9 commits intoelastic:feature/seq_nofrom
bleskes:local_checkpoint

Conversation

@bleskes
Copy link
Copy Markdown
Contributor

@bleskes bleskes commented Dec 11, 2015

This PR introduces the notion of a local checkpoint on the shard level. A local check point is defined as a the highest sequence number for which all previous operations (i.e. with a lower seq#) have been processed.

The current implementation is based on a fixed in memory bit array which is used in a round robin fashion. This introduces a limit to the spread between inflight indexing operation. We are still discussing options to work around this, but I think we should move forward toward a working system and optimize from there (and either remove this limitation or better understand it's implications).

relates to #10708

replaces #15111

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "an order list" -> "an ordered list"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This name is a mouthful; can it just be firstSeqNoInProcess?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it's an annoying name. Tweaked.

@jasontedor
Copy link
Copy Markdown
Member

This is a much simpler implementation than the first. I've minor comments on LocalCheckpointService and the associated tests but otherwise LGTM.

@jasontedor jasontedor removed the review label Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Engine Anything around managing Lucene and the Translog in an open shard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants