jtjeferreira opened a new pull request, #298:
URL: https://github.com/apache/incubator-pekko-connectors/pull/298

   The kinesis throttling is not being respected because the function 
`getPayloadByteSize` is incorrect. 
   
   ```scala
   private def getPayloadByteSize[T](record: (PutRecordsRequestEntry, T)): Int 
= record match {
       case (request, _) => request.partitionKey.length + 
request.data.asByteBuffer.position()
   }
   ```
   
   `request.data.asByteBuffer.position()` can return 0
   
   The ticket was originally reported in 
https://github.com/akka/alpakka/issues/2871 and I did the fix in the akka 
repository. AFAICT I can use the same code as long as I am the author...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to