Github user tweise commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/184#discussion_r47402814
--- Diff: engine/src/main/java/com/datatorrent/stram/StramLocalCluster.java
---
@@ -302,6 +304,15 @@ public StramLocalCluster(LogicalPlan dag) throws
IOException, ClassNotFoundExcep
if (dag.getAttributes().get(LogicalPlan.APPLICATION_PATH) == null) {
dag.getAttributes().put(LogicalPlan.APPLICATION_PATH, pathUri);
}
+
+ StorageAgent agent =
dag.getAttributes().get(OperatorContext.STORAGE_AGENT);
+ if (agent != null && agent instanceof AppIdAwareStorageAgent) {
+ AppIdAwareStorageAgent ap =
(AppIdAwareStorageAgent)dag.getAttributes().get(OperatorContext.STORAGE_AGENT);
+
+ ap.saveAppId(dag.getAttributes().get(LogicalPlan.APPLICATION_ID));
+ dag.setAttribute(OperatorContext.STORAGE_AGENT, ap);
--- End diff --
This is not needed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---