odbozhou commented on code in PR #128:
URL: https://github.com/apache/rocketmq-connect/pull/128#discussion_r867655473
##########
rocketmq-connect-runtime/src/main/java/org/apache/rocketmq/connect/runtime/connectorwrapper/WorkerSourceTask.java:
##########
@@ -351,7 +352,11 @@ private void putExtendMsgProperty(ConnectRecord
sourceDataEntry, Message sourceM
return;
}
for (String key : keySet) {
- MessageAccessor.putProperty(sourceMessage, "connect-ext-" + key,
extensionKeyValues.getString(key));
+ if (key.equals(MessageConst.PROPERTY_KEYS) ||
key.equals(MessageConst.PROPERTY_TAGS)) {
Review Comment:
imo, we should have a static list of properties and see if the key is
included in this list instead of enumerating.
For example: final static whiteListKey = {tags, propertyKey}
whiteListKey.cotain(key)
--
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]