Skip to content

Conversation

@ndolhii
Copy link

@ndolhii ndolhii commented Apr 18, 2023

In this PR a new API introduced in the #1505 is implemented for Datastore-based Work Registry.

Breaking Change

From now on the

public synchronized PickUpOutcome pickUp(ShardIndex index, NodeId nodeId)

method in DsShardedWorkRegistry will throw a DatastoreException indicating either a technical problem communicating with Datastore, or a concurrent change of a stored session.

@ndolhii ndolhii self-assigned this Apr 18, 2023
@ndolhii ndolhii requested a review from armiol April 19, 2023 08:35
@ndolhii
Copy link
Author

ndolhii commented Apr 19, 2023

@armiol PTAL.

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

LGTM with a comment to address.


@Test
@DisplayName("complete the shard session (once picked up) and make it available for picking up")
void completeSessionAndMakeItAvailable() {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't "complete" now. Please update the naming here and in the display name.

@ndolhii ndolhii merged commit 7053b69 into v1 Apr 19, 2023
@ndolhii ndolhii deleted the new-pickup-api branch April 19, 2023 10:57
@ndolhii ndolhii changed the title Implement new shard pick-up API introduced by core-java. [1.x] Implement new shard pick-up API introduced by core-java. May 15, 2023
@armiol armiol mentioned this pull request Jun 15, 2023
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.

2 participants