-
Notifications
You must be signed in to change notification settings - Fork 2
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
set-archive-status and delete-data subcommand do not work on OpenSearch serverless Registry #78
Comments
Both of these commands require the |
Since both of these use the lidvid, probably going to fail until opensearch-project/opensearch-java#1068 is resolved. |
Move to search instead of get because of the ':'s in the opensearch document ID. |
Fixed by fix in opensearch. See NASA-PDS/registry-common#54 |
Hi @al-niessner , The My mvn dependency confirms I am using the version 3.0.03-SNAPSHOT of openseach-java:
The command I am using on the MCP dev opensearch is, with the logs :
Did you test that yourself ? Thanks |
@tloubrieu-jpl yes, it is failing to do delete. Back into opensearch internals. |
Just heard back from opensearch (see ticket referenced above) and they say AOSS does not support DeleteByQuery. Can we ask AWS to verify please? Sure enough, it does not show up in supported operations: Here is a post suggesting to use delete collection: |
Thanks @al-niessner , It does not sound like delete a collection is the right approach for us since the collection in our case is all the indices from all the nodes with all their data. We would need a concept of cluster of documents around one _id... It does not sound like that is what collection is.
But this would be more work/code on our side. We can ask AWS where they are with the DeleteByQuery support. @sjoshi-jpl could you create a ticket for that ? |
If all you want to do is delete via ID, then, yes, DeleteRequest should work. However this is a change of scope albeit to the limit that we really use it. In other words, I do not remember and delete by query other than lidvid. Since this the same the id, they are equivalent. Maybe had a problem back in the day when originally written with ':' in URL. Anyway, if you want to change the use-case from delete key == value to delete ID then DeleteRequest is the logical solution. If you want to keep the idea of delete key == value, then can do a search then delete results via their returned IDs. |
@tloubrieu-jpl @al-niessner do we still need a ticket with AWS or are we proceeding with |
@sjoshi-jpl , we don't need the ticket to AWS thanks. @jordanpadams from what I understand we can delete documents one by one, knowing their ids. But we can do delete from a search query, as we used to do. We will discuss our options during the breakout today. |
As discussed in the breakout, we want to delete the documents by apply search query, then deleting matching documents one by one. The requirements are described in the users manual https://nasa-pds.github.io/registry/user/delete_data.html Need details on:
|
@jordanpadams can you review the comment above ? |
We give up We will create a new ticket to delete all for the current node. |
@tloubrieu-jpl Do we have this ticket for |
nvm see #80 |
Checked for duplicates
No - I haven't checked
🐛 Describe the bug
The following commands fail with 404 error. The lidvid requested is not found when using an OpenSearch serverless Registry.
🕵️ Expected behavior
I expected the commands to succceed.
📜 To Reproduce
Follow temporary manual https://docs.google.com/document/d/19FVATXpfbKxmoGjcq9Zxpuml4pX-nBZRlNzleGLttPA/edit
🖥 Environment Info
No response
📚 Version of Software Used
latest SNAPSHOT versions:
registry-common 1.6.0-SNAPSHOT
registry-mgr: 4.7.0-SNAPSHOT
as merged on main.
🩺 Test Data / Additional context
No response
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
It sounds like the error comes from the special character encoding management in the AWS SDK used to query the OpenSearch database.
🎉 Integration & Test
No response
The text was updated successfully, but these errors were encountered: