Skip to content

Conversation

@bleskes
Copy link
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
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
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
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
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
@bleskes
Copy link
Contributor Author

bleskes commented Dec 15, 2015

Thanks @jasontedor . I pushed another commit, addressing all your feedback

Copy link
Member

Choose a reason for hiding this comment

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

Nit: The indentation is off on this line.

@jasontedor
Copy link
Member

I have one more small nit, but LGTM.

bleskes added a commit that referenced this pull request Dec 15, 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.

relates to #10708

Closes #15390

formatting
@bleskes
Copy link
Contributor Author

bleskes commented Dec 15, 2015

pushed to feature/seq_no. Thanks @jasontedor

@bleskes bleskes closed this Dec 15, 2015
@bleskes bleskes deleted the local_checkpoint branch December 15, 2015 14:26
@clintongormley clintongormley added :Engine :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Sequence IDs labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/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