# Which will cause the LocalCheckpoint less than GlobalCheckpoint?

**URL:** <https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197>\
**Category:** Elasticsearch\
**Created:** [March 9, 2022, 10:22am UTC](https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197 "2022-03-09T10:22:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![armsword](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armsword/32/92690_2.png) [@armsword](https://discuss.elastic.co/u/armsword)\
**Post date:** [March 9, 2022, 10:22am UTC](https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197/1 "2022-03-09T10:22:02Z")

</div>

[https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/index/seqno/ReplicationTracker.java#L1250](https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/index/seqno/ReplicationTracker.java#L1250)

Hi, I have a question about the Local CheckPoint and Global CheckPoint. The Code in line L1250 shows that the LocalCheckpoint less than GlobalCheckpoint. I am confused. I want to know which conditions can cause the LocalCheckpoint less than GlobalCheckpoint?

@ywelsch@jasontedor

Thanks .

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 9, 2022, 7:03pm UTC](https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197/2 "2022-03-09T19:03:03Z")

</div>

It's impolite to ping random people to draw them into a conversation in which they're not already involved. It doesn't mean your question will get any additional attention and may even make it less likely to get an answer. Please don't do that again.

The global checkpoint must be no greater than the local checkpoint of every in-sync shard, but the code you're asking about relates to a shard which is not in-sync.

---

<div class="post-metadata">

**Author:** ![armsword](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armsword/32/92690_2.png) [@armsword](https://discuss.elastic.co/u/armsword)\
**Post date:** [March 10, 2022, 3:00am UTC](https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197/3 "2022-03-10T03:00:49Z")

</div>

Sorry, I read the code and find the people who write the codes, so I ping them. I think this can give me the correct answer. I will don't do that again

> but the code you're asking about relates to a shard which is not in-sync.

I understand that, thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 7, 2022, 3:01am UTC](https://discuss.elastic.co/t/which-will-cause-the-localcheckpoint-less-than-globalcheckpoint/299197/4 "2022-04-07T03:01:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
