[ 
https://issues.apache.org/jira/browse/GOBBLIN-1241?focusedWorklogId=471725&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-471725
 ]

ASF GitHub Bot logged work on GOBBLIN-1241:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Aug/20 23:24
            Start Date: 17/Aug/20 23:24
    Worklog Time Spent: 10m 
      Work Description: sv2000 commented on a change in pull request #3083:
URL: https://github.com/apache/incubator-gobblin/pull/3083#discussion_r471827430



##########
File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/flowgraph/DataNode.java
##########
@@ -38,6 +38,12 @@
    */
   Config getRawConfig();
 
+  /**
+   * Set raw config. This should only be used in cases where the data node's 
actual config should be different from the
+   * config it is constructed with (e.g. constructing with a resolved config).
+   */
+  void setRawConfig(Config config);

Review comment:
       Same comment as earlier.

##########
File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/core/GitFlowGraphMonitor.java
##########
@@ -184,10 +184,13 @@ private void addDataNode(DiffEntry change) {
     if (checkFilePath(change.getNewPath(), NODE_FILE_DEPTH)) {
       Path nodeFilePath = new Path(this.repositoryDir, change.getNewPath());
       try {
-        Config config = loadNodeFileWithOverrides(nodeFilePath);
-        Class dataNodeClass = Class.forName(ConfigUtils.getString(config, 
FlowGraphConfigurationKeys.DATA_NODE_CLASS,
+        // Temporarily resolve the data node config when constructing it, but 
leave it unresolved after to allow overriding
+        Config unresolvedConfig = loadNodeFileWithOverrides(nodeFilePath);
+        Config resolvedConfig = unresolvedConfig.resolve();

Review comment:
       Can the resolution be pushed into the BaseDataNode class? 

##########
File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/flowgraph/BaseDataNode.java
##########
@@ -39,6 +40,7 @@
   @Getter
   private String id;
   @Getter
+  @Setter

Review comment:
       We probably do not need a setter, if we do the resolution inside 
BaseDataNode.




----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 471725)
    Time Spent: 0.5h  (was: 20m)

> Allow nodes/edges in HOCON format and delay resolution to allow overriding
> --------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1241
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1241
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Jack Moseley
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to