wardlican commented on a change in pull request #2713:
URL: https://github.com/apache/incubator-inlong/pull/2713#discussion_r816392880
##########
File path:
inlong-sdk/sort-sdk/src/main/java/org/apache/inlong/sdk/sort/impl/tube/InLongTubeFetcherImpl.java
##########
@@ -261,11 +275,14 @@ public void run() {
if (null != message && TErrCodeConstants.SUCCESS ==
message.getErrCode()) {
List<InLongMessage> msgs = new ArrayList<>();
for (Message msg : message.getMessageList()) {
- msgs.add(new InLongMessage(msg.getData(),
getAttributeMap(msg.getAttribute())));
+ List<InLongMessage> deserialize = deserializer
+ .deserialize(context, inLongTopic,
getAttributeMap(msg.getAttribute()),
+ msg.getData());
+ msgs.addAll(deserialize);
context.getStatManager()
.getStatistics(context.getConfig().getSortTaskId(),
inLongTopic.getInLongCluster().getClusterId(), inLongTopic.getTopic())
-
.addMsgCount(1L).addConsumeSize(msg.getData().length);
+
.addMsgCount(deserialize.size()).addConsumeSize(msg.getData().length);
Review comment:
"Size" represents the size of the list, that is, how many messages there
are
--
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]