-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Searchable Snapshot not working with an NPE error #9291
Comments
If I remove "storage_type": "remote_snapshot" from creating restored index. The restored index can be created correctly. So I am pretty sure it's an error against searchable snapshot feature. |
The config file is like: cluster.name: my-cluster |
Thanks @ryanqin01. This looks like a bug with the HDFS integration with the searchable snapshot feature. |
Thanks for reply. I guess is that because "partSize" is a parameter of Amazon S3, but the HDFS integration involves it wrongly? |
@ryanqin01 That seems to be the issue. "partSize" isn't specifically a parameter of S3, but for whatever reason it appears not to be set by the HDFS repository. I'm honestly not yet sure whether the HDFS repository is wrong or if it is wrong to assume that field will never be null. This still needs some more investigation. |
I believe I have traced the bug to the fact that the searchable snapshot code is not correctly allowing for "partSize" to be null. @ryanqin01 Is there any chance you can validate this by supplying the following setting when creating your HDFS repository?
Any implausibly large value is fine as it will have the effect of "no chunking". This should be useful as a work-around until the fix is made available in a subsequent release. |
Hi Andrew, It's frustrating that some new errors occured:
The output is like:
|
The repository setting is like: The HDFS cluster is a single node cluster on my vm: |
@ryanqin01 It turns out the key interface method that the searchable snapshot feature uses to fetch partial files in not implemented by the HDFS repository. Unfortunately that means HDFS doesn't support searchable snapshots currently. I'm going to look into what it would take to add support and in the meantime update our documentation appropriately. |
Closed inadvertently, reopening. |
This has been fixed and will be in the upcoming 2.10 release |
Describe the bug
I create a snapshot based on HDFS. When the snapshot is not searchable, it works fine. When I set the snapshot to searchable, it reports error. The opensearch version is 2.9
To Reproduce
Create the repository:
create index:
create snapshot:
create restore index:
search. The error reports:
Error in log:
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: