Skip to content

[SYSTEMML-1127] Synchronize creation of the cache directory#295

Closed
fschueler wants to merge 1 commit intoapache:masterfrom
fschueler:SYSTEMML-1127
Closed

[SYSTEMML-1127] Synchronize creation of the cache directory#295
fschueler wants to merge 1 commit intoapache:masterfrom
fschueler:SYSTEMML-1127

Conversation

@fschueler
Copy link

This fixes a race condition that occurred while initializing the cache directory on remote spark workers. By synchronizing this, the problem should be resolved.

As per @mboehm7 's suggestion I synchronized the creation of the temporary cache directory. Initialization of the cache was already synchronized.

This fixes a race condition that occurred while initializing the cache directory on remote spark workers. By synchronizing this, the problem should be resolved.
@deroneriksson
Copy link
Member

LGTM. Thank you @fschueler!

@asfgit asfgit closed this in ce71ab1 Nov 29, 2016
@j143-zz
Copy link
Contributor

j143-zz commented Jul 16, 2017

Has the synchronization enabled in other way, than this PR. I believe there is no synchronized in the file.

cc @deroneriksson

@mboehm7
Copy link
Contributor

mboehm7 commented Jul 16, 2017

@j143 yes, I had to change this to make both creation and cleanup robust enough. We now synchronize in parfor workers because multiple setups and cleanup registrations needs to happen atomically. The cleanup is handled via a shutdown hook of the executor process.

The relevant commit and jira are here
b78c125
https://issues.apache.org/jira/browse/SYSTEMML-1309

j143-zz pushed a commit to j143-zz/systemml that referenced this pull request Nov 4, 2017
This fixes a race condition that occurred while initializing the cache
directory on remote spark workers. By synchronizing this, the problem should
be resolved.

Closes apache#295.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants