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
Elasticsearch Ddb To ES Lambda - Not updating removed or edited items. #4913
Comments
From the people I have spoken with, so far no one knows why this is the case. |
I've attached below the generated python script.
|
Hello @Rafcin are you using |
I have my schema structured where the main object that holds everything does not use a key. It has a connection but only the smaller objects in it have keys. The main object in this case is a restaurant that stores menu items and then the menu items have reviews and those using |
I tried to repro with the following schema type Todo
@model
@searchable
@key(name: "nameCreatedAt", fields: ["name", "createdAt"], queryField: "byNameCreatedAt")
{
id: ID!
name: String!
description: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
} Though it's deleting records for me. Did you use the |
I haven't modified Here is a chunk of my Schema:
|
Same for me - deleting an item directly from DynamoDB console does not affect the elasticsearch indice |
We are having this issue as well. |
I tried to repro with version 4.27 given the schema provided by @racfin. @idanlo @yonatanganot
If the information is sensitive you can also send them to amplify-cli@amazon.com |
I'll send it over in a bit just need to finish up some auth stuff.
|
Sorry it's late... I broke a few auth things... anyways I forwarded the logs to the email above! |
Hello @Rafcin re #3786 |
Is this the new python script? I can switch it and see if it works. As far as I could see I never saw an error but I can check again |
I just triggered a change to an object in Dynamo and in cloudwatch and the only lambda error was
|
What should be done in place of the older handler? The function requires a handler to be set |
Sorry it was late and I had put the ddb_to_es.py in the streaming function...
|
So far none of the changes have fixed it. |
Hello @Rafcin Do you have datastore features enabled? |
Is anyone still dealing with this issue? |
Hi sorry, I commented on this issue somewhere else, I ended up going into one of the templates and disabling versioning and it seems work as it should |
Actually sorry I just checked again, an array of strings I changed did not update at all. |
I think the issue is resolved, I looked at both lambda functions in my dev branch and production and they are exactly the same. It seems to work after the version conflict detection was disabled. I did some tests and the reason some images don't update after the change is because of the extreme caching I have setup for the production branch that has now been fixed. @r0zar I would suggest disabling the conflict detection, if I remember correctly I had to go into my templates as well to forcefully remove it because every time I ran amplify push it complained. |
Closing this issue as this is happening due to conflict versioning enabled. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
I noticed when I remove items manually from DynamoDB the items on the ES index don't update at all and are left there. However adding items seems to work just fine.
To Reproduce
I'm not sure how one can reproduce it, I was using the latest amplify released a month ago if that helps but i'm unsure of what version I used.
If you would like logs or anything just let me know what logs from where and I will get them. As far as I can tell I looked around and couldn't find any errors regarding the deletion of an item.
Expected behavior
When removing items from Dynamo they should automatically update the ES index and update or remove the item.
The text was updated successfully, but these errors were encountered: