[ https://issues.apache.org/jira/browse/GOBBLIN-1185?focusedWorklogId=444546&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-444546 ]
ASF GitHub Bot logged work on GOBBLIN-1185: ------------------------------------------- Author: ASF GitHub Bot Created on: 11/Jun/20 20:38 Start Date: 11/Jun/20 20:38 Worklog Time Spent: 10m Work Description: autumnust commented on a change in pull request #3033: URL: https://github.com/apache/incubator-gobblin/pull/3033#discussion_r439057712 ########## File path: gobblin-data-management/src/main/java/org/apache/gobblin/data/management/retention/DatasetCleaner.java ########## @@ -88,33 +94,43 @@ public DatasetCleaner(FileSystem fs, Properties props) throws IOException { - State state = new State(props); + Properties properties = new Properties(); + properties.putAll(props); + // load dynamic configuration and add them to the job properties + Config propsAsConfig = ConfigUtils.propertiesToConfig(props); + DynamicConfigGenerator dynamicConfigGenerator = + DynamicConfigGeneratorFactory.createDynamicConfigGenerator(propsAsConfig); + Config dynamicConfig = dynamicConfigGenerator.generateDynamicConfig(propsAsConfig); + for (Map.Entry<String, ConfigValue> entry : dynamicConfig.entrySet()) { + properties.put(entry.getKey(), entry.getValue().unwrapped().toString()); Review comment: Does it work in this way ? It seems it will only get the top-level key and here it just convert the ConfigValue into a string which could itself be a hierarchical config. ########## File path: gobblin-modules/gobblin-kafka-09/src/test/java/org/apache/gobblin/kafka/writer/Kafka09DataWriterTest.java ########## @@ -84,7 +84,7 @@ public void testStringSerialization() _kafkaTestHelper.provisionTopic(topic); Properties props = new Properties(); props.setProperty(KafkaWriterConfigurationKeys.KAFKA_TOPIC, topic); - props.setProperty(KafkaWriterConfigurationKeys.KAFKA_PRODUCER_CONFIG_PREFIX+"bootstrap.servers", "localhost:" + _kafkaTestHelper.getKafkaServerPort()); + props.setProperty(KafkaWriterConfigurationKeys.KAFKA_PRODUCER_CONFIG_PREFIX+"bootstrap.servers", "127.0.0.1:" + _kafkaTestHelper.getKafkaServerPort()); Review comment: why this change? ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 444546) Time Spent: 40m (was: 0.5h) > Enable dataset cleaner to emit kafka events > ------------------------------------------- > > Key: GOBBLIN-1185 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1185 > Project: Apache Gobblin > Issue Type: Task > Reporter: Zihan Li > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)