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

Add test for the partitionKey with other operation #163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zymap
Copy link
Member

@zymap zymap commented May 23, 2024

No description provided.

@zymap
Copy link
Member Author

zymap commented May 23, 2024

Expected: null
 but was: GetResult(key=__oxia/term, value=[48], version=Version[versionId=-1, createdTimestamp=1716444571082, modifiedTimestamp=1716444571082, modificationsCount=0, sessionId=Optional.empty, clientIdentifier=Optional.empty])

@zymap
Copy link
Member Author

zymap commented May 23, 2024

It seems it has this issue on the ComparisonCeiling and ComparisonHigher

@zymap zymap force-pushed the opeartion-with-partition-key branch from 1eeacc1 to 0e42e81 Compare May 23, 2024 09:29
SyncOxiaClient client = OxiaClientBuilder.create(oxia.getServiceAddress()).syncClient();


GetResult gr = client.get("a", Set.of(GetOption.PartitionKey("a"), GetOption.ComparisonCeiling));
Copy link
Collaborator

Choose a reason for hiding this comment

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

These keys were added by previous tests and might or might not have the partition-key set. Therefore, the routing to a shard could be different.

Take a look at https://github.com/streamnative/oxia-java/blob/main/client/src/main/java/io/streamnative/oxia/client/AsyncOxiaClientImpl.java#L480-L486 to see how passing a partition-key changes the Get operation.

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