Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for block locking #66

Open
wants to merge 2 commits into
base: file-locks
Choose a base branch
from

Conversation

clbarnes
Copy link
Contributor

No description provided.

with OtherLock(self.block_path):
self.logger.debug("Attempting to write to block")
self.dataset[:] = np.ones(self.dataset.shape, dtype=self.dtype) * 2
print(captured.exception)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what kind of exception the C++ layer will throw; this should be made more specific.

@clbarnes
Copy link
Contributor Author

Hanging when trying to write to a locked file. Does the C++ side respect the non-blocking lock flag? In python, trying to open something with LOCK_NB raises an error straight away; I would expect C++ to do the same but maybe not.

@constantinpape constantinpape mentioned this pull request Jun 26, 2019
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.

None yet

1 participant