-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Taking a snapshot of an index closed prior to 7.2.0 fails with a NPE in 7.11.2 #70676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
We agreed to fix this by marking such shards as The test I suggested above only works for BWC versions <7.2.0 because of that change, because more recent versions can successfully snapshot a closed index. |
@DaveCTurner i am newbie to open source contributions, would like to pick this issue. |
Sure, go ahead @SivaTharun |
First timer here, can I get started with this issue? |
@SivaTharun are you still working on this? |
No reply, so I think this issue is up for grabs again. |
@DaveCTurner sorry for late reply, missed the conversation in my inbox, can i start to work on this issue |
Yes, sure, I thought you'd already started :) |
@DaveCTurner can i work on this? I'm new to contributing. |
@DaveCTurner - hi Dave. Not rly sure what the status of this is. I'm interested in learning more of Elasticsearch and would like to start helping out here. Can I work on this issue? |
Sure, it doesn't look like anyone is working on this. |
Hey I am newbie and would like to work on it. How can I get started. |
@KhushV25 - I started looking at this. Haven't made too much progress yet. I'm still in the process of trying to set up my dev environment to test against. Did you want to try to work on it together? |
@sarahlee429 - Hey I would love to work with you but I am totally a beginner and this would be my first ever project so will it be okay for you to work with me? |
@KhushV25 sure thing. I'm pretty new to ES also so we can learn together. So in the README there's quite a bit of info about getting started if you haven't gone through those yet. |
@sarahlee429 Hey can it discuss it on discord for better communication. Here is my user id " khushhere. " . |
@KhushV25 @sarahlee429 Just checking if any of you is already working on the issue ? Could you please share a status of your work so far ? We can discuss here more before digging and doing further implementations and share ideas. |
I am also a totally beginner and I would love to start contributing to ElasticSearch. @KhushV25 @sarahlee429 - Have you guys made some progress on this issue? If you guys have made some progress, please let me know, so we maybe can be working together in order to learn ant contribute to the community! @baseely - I've created a PR - I know that it is a rough work, but I would appreciate if you could do a quick review and guide me to get on track to make a great quality code to fix this issue. Thanks, |
Hi @DaveCTurner I know you might be very busy working on more important issues, but could you please give a quick look in the PR that I raised? I raised the PR a few days ago, but I haven't got any feedback yet. This is my first contribution to Elasticsearch (and I know this PR is still a work-in-progress), but I would appreciate if you could spend some minutes to give me some feedback, so I can know if I am going on the right path or not. Link to the PR Thank you so much! |
Hi @zembrzuski, are you still working on this? If not then I'd like to pick up your work :) |
Hi I am new here, and I noticed that this issue have been here since 2021, if no one is currently working on it, I will love to take over |
Go for it @jonny5203, tho please note that any fix will need to include a test case that reproduces the problem, and that will require you to write a test that starts with a cluster running v7.1.1 or earlier and then upgrades it all the way to the target branch version (i.e. |
Elasticsearch version (
bin/elasticsearch --version
):master
, various7.x
versionsPlugins installed: N/A
JVM version (
java -version
): N/AOS version (
uname -a
if on a Unix-like system): N/ADescription of the problem including expected versus actual behavior:
In
SnapshotsService#shards
we assume that if an index has metadata in the cluster state then it has a routing table entry, but this isn't true if the index was closed prior to 7.2. As a workaround, you can open and close any such indices.Steps to reproduce:
Introduce a closed index in, say, 7.1.1 and then try and take a snapshot in
master
. For instance, apply these changes to b65992e ...... and then run
./gradlew :qa:full-cluster-restart:v7.1.1#bwcTest -Dtests.class=org.elasticsearch.upgrades.FullClusterRestartIT -Dtests.method=testSnapshotRestore
.Provide logs (if relevant):
In tests one of the nodes fails with an
AssertionError
:In production it's a NPE instead:
The text was updated successfully, but these errors were encountered: