Skip to content

Conversation

@mdumandag
Copy link
Contributor

Adds the implementation, documentation, code samples, and test of
CP CountDownLatch.

Also, the invocation service is edited to return OperationTimeoutError
instead of HazelcastTimeoutError in case of invocation timeouts
as the Java client does.

depends on #224

@mdumandag
Copy link
Contributor Author

verify

Adds the implementation, documentation, code samples and test of
CP CountDownLatch.

Also, invocation service is editted to return `OperationTimeoutError`
instead of `HazelcastTimeoutError` in case of invocation timeouts
as the Java client does.
@puzpuzpuz puzpuzpuz self-requested a review October 27, 2020 08:18
Copy link

@puzpuzpuz puzpuzpuz left a comment

Choose a reason for hiding this comment

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

LGTM

self.assertTrue(latch.try_set_count(3))
self.assertEqual(3, latch.get_count())

def test_try_set_count_when_count_is_already_set(self):

Choose a reason for hiding this comment

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

nit: does it make sense include a test that verifies that try_set_count succeeds once the count goes to zero?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I added the extra test case.

@mdumandag
Copy link
Contributor Author

Thanks for the review Andrey, I am merging this PR

@mdumandag mdumandag merged commit b30f272 into hazelcast:master Oct 27, 2020
@mdumandag mdumandag deleted the cp-countdown-latch branch October 27, 2020 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants