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
NeedMoreData / Not enough data thrown randomly with amazon-dax-client #4038
Comments
Hey @rchl thanks for opening issue, can you possibly check for any race conditions with your code? |
Hi. So after filing this I've also filed the #9647941061 case in AWS with more details and reproduction that I wouldn't be comfortable sharing there. I got response that it will be followed up by DAX team so up to you how you want to handle this issue. I could post more information here if that would be useful to you. |
Hi, I'm seeing the same errors and have opened a ticket with AWS Support as well #9956481171. @rchl thanks for opening this, have you found any solution yet? |
I'm using own version of the package with the following patch applied: rchl/amazon-dax-client@8ad2d19 It's a workaround specifically for the I haven't published that version of the package anywhere publicly. |
Thanks for the quick response. One more question - since this code is just ignoring the error, do you know if the error is a real problem? Did AWS tell you that they acknowledge the problem and will work on a fix? |
The problem is that this package in some circumstances stops reading from the network stream too early, before it received all data from DAX. In the case of this specific API ( If your AWS acknowledged it but didn't not provide any specific timeframe for a fix. |
FYI: this issue is fixed in version amazon-dax-client 1.2.8 |
Have been using version with the fix for some time now and it appears to be fixed. |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
I'm reporting this issue here even it concerns
amazon-dax-client
package as there is no other appropriate place to report it.The issue happens randomly (in production) when using
batchGetItem
API to read from the Dax cluster.Is the issue in the browser/Node.js?
Node.js
If on Node.js, are you running this on AWS Lambda?
No
Details of the browser/Node.js version
v14.18.1
SDK version number
2.1070.0
To Reproduce (observed behavior)
Difficult to provide as it doesn't happen reliably and requires access to Dax cluster.
The
amazon-dax-client
has this code that handles parsing of the Dax response:The crash happens when trying to read the
consumedCapacities
from the response so near the end of this funciton. All the data before that is correctly parsed.Is there are logic error in that code? Maybe it should check whether
ReturnConsumedCapacity
was requested before trying to parse the response further?Though not sure why it wouldn't reproduce every time.
The text was updated successfully, but these errors were encountered: