Skip to content

Tests for block locking - #66

Open
clbarnes wants to merge 2 commits into
constantinpape:file-locksfrom
clbarnes:race-tests
Open

Tests for block locking#66
clbarnes wants to merge 2 commits into
constantinpape:file-locksfrom
clbarnes:race-tests

Conversation

@clbarnes

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

1 participant