GanfengTan commented on code in PR #6008:
URL: https://github.com/apache/inlong/pull/6008#discussion_r979246966
##########
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/reader/file/FileReaderOperator.java:
##########
@@ -90,7 +93,9 @@ public Message read() {
AuditUtils.add(AuditUtils.AUDIT_ID_AGENT_READ_SUCCESS,
inlongGroupId, inlongStreamId,
System.currentTimeMillis());
readerMetric.pluginReadCount.incrementAndGet();
- return new
DefaultMessage(message.getBytes(StandardCharsets.UTF_8));
+ Map<String, String> header = new HashMap<>();
+ header.put(PROXY_KEY_DATA, DigestUtils.md5Hex(inlongGroupId));
+ return new
DefaultMessage(message.getBytes(StandardCharsets.UTF_8), header);
Review Comment:
@pocozh 3qs your advice, I think inlongGroupId more better becuse the Group
ID of the same task does not change. moreover added that users can configure
Partition keys.
--
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]