TCS0287E: Failed records in request found (... of ...). Error code: ... Error message: ...
Sending a batch of records to a Kinesis stream is not an atomic operation. It can partially fail, i.e. it is possible for every record to individually fail or succeed, independent of the other ones in the same batch. This error occurs when the request was successfully delivered to the Kinesis server but some request records (it may be one or may be all of them) failed to be added to the stream. The message shows the number of failed records and total number of records in the request, error code and error text as returned from Kinesis server.
The errors could be:
- ProvisionedThroughputExceededException: The record delivery rate is too high and exceeds the stream ingestion limits.
One shard's ingestion capability is limited (currently 1000 of data records per second). Try either to limit your data generation rate or to reduce record chunk size and/or number of connections in script parameters (this would affect both the number of records sent to the stream at the same time as a single package and the package frequency). Alternatively, you can increase the number of shards within a stream.
Please consult the Kinesis documentation for exact info on current Kinesis limits.
- InternalFailure: Some server side problems occurred.
Try to restart the task. Check the Kinesis stream status if the behavior persists.