springfan opened a new issue #2023:
URL: https://github.com/apache/camel-quarkus/issues/2023
```
<quarkus-plugin.version>1.8.1.Final</quarkus-plugin.version>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws-kinesis</artifactId>
</dependency>
```
Our producer sends zipped messages. When reading those about 1/4 of all msgs
cannot be unzipped. When digging into the message blob it became clear that one
message contains multiple data blobs. That's probably due to the producer side
message aggregation (
https://docs.aws.amazon.com/streams/latest/dev/kinesis-kpl-consumer-deaggregation.html).
Instead of a single message the data from the Record entity contains
obviously several merged data blobs that I'm unable to read (zip error when
trying to decompress). I'd expect to receive several msgs in my processor
instead of several msgs merged into one msg blob.
```
from("aws-kinesis://" lsc.getStreamName()
"?amazonKinesisClient=client&bridgeErrorHandler=true&maxResultsPerRequest=500&greedy=true&delay=0&runLoggingLevel=TRACE&iteratorType=LATEST")
.routeId("vssKinesisStream")
.log("LSC message received.")
.onException(java.util.zip.ZipException.class).process(exchange ->
{ metrics.countInvalidPerSec(); }
)
.stop()
.end()
.process(exchange ->
{ metrics.countReceivedPerSec();
Record record = exchange.getIn().getBody(Record.class);
String message = extractMessageFromRecord(record);
exchange.getIn().setBody(message);
metrics.countValidPerSec(); LOG.info("Extracted
message: " + message); lastReadMsgAge =
Duration.between(record.getApproximateArrivalTimestamp().toInstant(),
Instant.now()); }
```
According to https://issues.apache.org/jira/browse/CAMEL-15885 that is
expected behavior. But how should one de-aggregate the merged msg blob? Isn't
that a missing feature when the KCL supports automatic de-aggregation of KPL
user records.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]