Closed tomekzbrozek closed 3 years ago
Hello,
This means that the batchID that is linked to the s3 prefix was locked for loading by another thread, but then wasn't rotated. This probably means that the thread that should have loaded the files crashed in processPendingBatch
before it got to the batch rotation. To fix this, you need to do 2 things:
resetCurrentBatch.js
from the command linereprocessBatch.js
Sorry that you had this issue, but the above should resolve it.
Thx,
Ian
Thanks @IanMeyers , it worked indeed!
More than a week ago, my loader unexpectedly stopped COPYing files to Redshift, producing the following errors:
☝️ this is retried 100 times in a row -- the log above shows trial number 95.
Then, after 100th try, it throws this error:
When I tried to unlock the batch, I got this message:
We have 9 different configurations in dynamoDB (each configuration refers to a different S3 prefix of files), and it's only files from 2 of these configurations that stopped being loaded (but within those two configurations, all files are impacted by that error).
I'd appreciate any pointers. Seems like a similar issue to this one https://github.com/awslabs/aws-lambda-redshift-loader/issues/23 from 6 years ago, but it's not clear how that one was fixed. Thanks!