rohanag12 commented on a change in pull request #3292: Bug: Read override
config file in heron executor
URL: https://github.com/apache/incubator-heron/pull/3292#discussion_r294976015
##########
File path: heron/executor/src/python/heron_executor.py
##########
@@ -1109,10 +1109,15 @@ def start_state_manager_watches(self):
Receive updates to the packing plan from the statemgrs and update
processes as needed.
"""
Log.info("Start state manager watches")
+
+ with open(self.override_config_file, 'r') as stream:
+ overrides = yaml.load(stream)
+ overrides["heron.statemgr.connection.string"] =
self.state_manager_connection
Review comment:
You're right, if the file is empty, `yaml.load` returns `None`. Added a
check, thanks!
----------------------------------------------------------------
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