Skip to content

Commit

Permalink
GH-247: Fix java.nio.ReadOnlyBufferException thrown by KclMessageDriv…
Browse files Browse the repository at this point in the history
…enChannelAdapter in batch mode
  • Loading branch information
kelseyh committed Nov 8, 2024
1 parent 93fb5eb commit 0e4d419
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ else if (KclMessageDrivenChannelAdapter.this.converter != null) {
partitionKeys.add(r.partitionKey());
sequenceNumbers.add(r.sequenceNumber());

return KclMessageDrivenChannelAdapter.this.converter.convert(r.data().array());
return KclMessageDrivenChannelAdapter.this.converter.convert(BinaryUtils.copyAllBytesFrom(r.data()));
})
.toList();

Expand Down
Loading

0 comments on commit 0e4d419

Please sign in to comment.