Git Product home page Git Product logo

Comments (4)

elasticsearchmachine avatar elasticsearchmachine commented on August 20, 2024

Pinging @elastic/es-distributed (Team:Distributed)

from elasticsearch.

kkrik-es avatar kkrik-es commented on August 20, 2024

This is still happening: https://gradle-enterprise.elastic.co/s/qii4jqdjvu32u

from elasticsearch.

idegtiarenko avatar idegtiarenko commented on August 20, 2024

I was checking the failures and every time we have a mismatch of docs count it is due to something like:

[2024-03-13T13:33:54,641][WARN ][o.e.x.c.a.ShardFollowNodeTask] [follower3] shard follow task encounter non-retryable error
org.elasticsearch.index.IndexNotFoundException: no such index [index1]
	at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:1238) ~[elasticsearch-8.12.3-SNAPSHOT.jar:8.12.3-SNAPSHOT]
	at org.elasticsearch.xpack.ccr.action.ShardFollowTasksExecutor$1.lambda$innerUpdateSettings$6(ShardFollowTasksExecutor.java:204) ~[main/:?]

[2024-03-13T13:33:54,643][WARN ][o.e.x.c.a.ShardFollowNodeTask] [follower3] shard follow task encounter non-retryable error
org.elasticsearch.index.IndexNotFoundException: no such index [index1]
	at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:1238) ~[elasticsearch-8.12.3-SNAPSHOT.jar:8.12.3-SNAPSHOT]
	at org.elasticsearch.xpack.ccr.action.ShardFollowTasksExecutor$1.lambda$innerUpdateAliases$8(ShardFollowTasksExecutor.java:284) ~[main/:?]

[2024-03-13T13:33:54,645][WARN ][o.e.x.c.a.ShardFollowNodeTask] [follower3] shard follow task encounter non-retryable error
org.elasticsearch.index.IndexNotFoundException: no such index [index1]
	at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:1238) ~[elasticsearch-8.12.3-SNAPSHOT.jar:8.12.3-SNAPSHOT]
	at org.elasticsearch.xpack.ccr.action.ShardFollowTasksExecutor$1.lambda$innerUpdateSettings$6(ShardFollowTasksExecutor.java:204) ~[main/:?]

[2024-03-13T13:33:54,654][WARN ][o.e.x.c.a.ShardFollowNodeTask] [follower3] shard follow task encounter non-retryable error
org.elasticsearch.index.IndexNotFoundException: no such index [index1]
	at org.elasticsearch.cluster.metadata.Metadata.getIndexSafe(Metadata.java:1238) ~[elasticsearch-8.12.3-SNAPSHOT.jar:8.12.3-SNAPSHOT]
	at org.elasticsearch.xpack.ccr.action.ShardFollowTasksExecutor$1.lambda$innerUpdateAliases$8(ShardFollowTasksExecutor.java:284) ~[main/:?]

see: https://gradle-enterprise.elastic.co/s/qzwwh6utni65q/tests/task/:x-pack:plugin:ccr:internalClusterTest/details/org.elasticsearch.xpack.ccr.RestartIndexFollowingIT/testFollowIndex/1/output

There is nothing in leader logs indicating that index was deleted.
The leader node was restarting in meanwhile. Is there a way we could return incomplete/empty or a cluster state from a node with no master during this period of time?

from elasticsearch.

idegtiarenko avatar idegtiarenko commented on August 20, 2024

The failure is likely happening as we see the unrecovered cluster state that does not contain the index we follow.
This is a bug in ShardFollowNodeTask we need to fix.

from elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.