Error in writing Kinesis using Asynclinet - Caused by: java.nio.channels.ClosedChannelException: null #2341
Labels
bug
This issue is a bug.
closed-for-staleness
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
The Java client using AWS SDK (2.9.17) to write singleRecord to Kinesis from one AWS account to another AWS account through proxy . suddenly we are seeing lot of exception -
Code we are using -
PutRecordResponse putRecordIntoKinesis(final PutRecordRequest record) {
try {
return this.kinesisAsyncClient.putRecord(record).join();
} catch (CompletionException e) {
throw new SdkCommonException(ex);
}
Expected Behavior
Should not throw exception.
Current Behavior
Throws Exception
Complete error stack -
After enable the aws sdk debug logs -
Steps to Reproduce
we are getting this exception in prod environment, the tasks are running in ECS both region, the request rate is 40 TPS. we are unable to reproduce this issue in QA environment.
Context
current application is customer facing application if any error happens we need to manually re-process the events from our s3 bucket.
If we re-cycle the container we can see exception is not shows up minimum certain period of time (4 to 5 hours) after that this exception start to throws again for that we need to go for re-cycle the container.
Your Environment
The text was updated successfully, but these errors were encountered: