Skip to content

Conversation

@ktoso
Copy link
Member

@ktoso ktoso commented Jan 17, 2020

Motivation:

Ended up stabilizing the test by lowering the assumptions made by the test.

I had some quite progressed up numbers code really didn't like some bits of it so stashed it for now... Will revive it though so we can implement the "oldest" properly. Will do this in separate mini PR.

I've not seen this hardened test fail (nor drop a message), so want to see it on CI as well.
Continuing with other work around this area.

Modifications:

  • harden the joining ensuring status a bit in the test
  • technically loss is possible here, but I've not seen it with those changes

I'm following up with further cluster lifecycle missing features fixing:

Result:

@ktoso ktoso requested a review from yim-lee January 17, 2020 13:36
@ktoso
Copy link
Member Author

ktoso commented Jan 17, 2020

Logs don't indicate we dropped any message either...


22:01:41 Test Case 'ActorSingletonPluginTests.test_singletonByClusterLeadership_withLeaderChange' started at 2020-01-17 13:01:41.018
22:01:47 Test Case 'ActorSingletonPluginTests.test_singletonByClusterLeadership_withLeaderChange' passed (6.186 seconds)

If it would we have

 pprint("lost msg @ node 2")

And even if it did, technically yes this "could happen" as we don't guarantee delivery -- we can later on provide it as an additional layer though.

Please have a look @yim-lee .

Having that said, I'm still working on the "oldest" as well as other cluster hardening.

Copy link
Member

@yim-lee yim-lee left a comment

Choose a reason for hiding this comment

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

<3

@ktoso ktoso merged commit d4fbb2e into apple:master Jan 17, 2020
@ktoso ktoso deleted the wip-stabilize-singleton-test branch January 17, 2020 22:06
@ktoso
Copy link
Member Author

ktoso commented Jan 17, 2020

Thanks for review :)

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.

FAILED: ActorSingletonPluginTests.test_singletonByClusterLeadership

2 participants