Github user srdo commented on a diff in the pull request: https://github.com/apache/storm/pull/2113#discussion_r120458603 --- Diff: storm-server/src/main/java/org/apache/storm/localizer/AsyncLocalizer.java --- @@ -144,8 +148,19 @@ public Void call() throws Exception { File tr = new File(tmproot); try { downloadBaseBlobs(tr); + if (_assignment.is_set_total_node_shared()) { + File sharedMemoryDirTmpLocation = new File(tr, "shared_by_topology"); + //We need to create a directory for shared memory to write to (we should not encourage this though) + Path path = sharedMemoryDirTmpLocation.toPath(); + Files.createDirectories(path); + } _fsOps.moveDirectoryPreferAtomic(tr, _stormRoot); - _fsOps.setupStormCodeDir(ConfigUtils.readSupervisorStormConf(_conf, _topologyId), _stormRoot); + Map<String, Object> topoConf = ConfigUtils.readSupervisorStormConf(_conf, _topologyId); + _fsOps.setupStormCodeDir(topoConf, _stormRoot); + if (_assignment.is_has_node_shared_memory()) { + File sharedMemoryDir = new File(_stormRoot, "shared_by_topology"); --- End diff -- I might have missed it somewhere, but how does the topology code access the off heap shared memory?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---