cameronlee314 commented on a change in pull request #1255: SAMZA-2429: Update 
LocalApplicatoinRunner to load full job config from config loader when present.
URL: https://github.com/apache/samza/pull/1255#discussion_r371563040
 
 

 ##########
 File path: 
samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java
 ##########
 @@ -111,27 +112,35 @@ public LocalApplicationRunner(SamzaApplication app, 
Config config) {
    * @param metadataStoreFactory the instance of {@link MetadataStoreFactory} 
to read and write to coordinator stream.
    */
   public LocalApplicationRunner(SamzaApplication app, Config config, 
MetadataStoreFactory metadataStoreFactory) {
-    this(ApplicationDescriptorUtil.getAppDescriptor(app, config), 
getCoordinationUtils(config), metadataStoreFactory);
+    this(app, config, getCoordinationUtils(config), metadataStoreFactory);
   }
 
   /**
    * Constructor only used in unit test to allow injection of {@link 
LocalJobPlanner}
    */
   @VisibleForTesting
-  LocalApplicationRunner(ApplicationDescriptorImpl<? extends 
ApplicationDescriptor> appDesc, Optional<CoordinationUtils> coordinationUtils) {
-    this(appDesc, coordinationUtils, 
getDefaultCoordinatorStreamStoreFactory(new JobConfig(appDesc.getConfig())));
+  LocalApplicationRunner(SamzaApplication app, Config config, 
Optional<CoordinationUtils> coordinationUtils) {
+    this(app, config, coordinationUtils, 
getDefaultCoordinatorStreamStoreFactory(new JobConfig(config)));
   }
 
   private LocalApplicationRunner(
 
 Review comment:
   Is this considered a semantic API change? Before, it seems like `config` was 
always the full config, but now you are allowing the initial config with only 
config loader properties.
   It's ok to have this be an API change, but just wanted to make sure you note 
that where necessary.

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


With regards,
Apache Git Services

Reply via email to