Skip to content
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

Possible data loss when importing into DynamoDB! #139

Open
Dunedan opened this issue Jul 4, 2017 · 0 comments
Open

Possible data loss when importing into DynamoDB! #139

Dunedan opened this issue Jul 4, 2017 · 0 comments

Comments

@Dunedan
Copy link

Dunedan commented Jul 4, 2017

While trying to use the cli to import data into DynamoDB I wondered why no data appeared in DynamoDB.
After some digging I noticed that aggregator._flush isn't called when piping data into dyno. That causes up to 25 records not to be imported into DynamoDB and happens for put as well as for import!
In my case my test data had less than 25 records, that's why I noticed it.

Tested on Debian/unstable with NodeJS 7.10.0 & 8.1.3.

The internet seems to suggest (nodejs/node#53) that a .push(null) at the end of the stream is necessary, but as I'm not really familiar with NodeJS I don't know if that applies to reading from stdin as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant