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

schema: Restrict partition key type to int #44

Merged
merged 1 commit into from
Mar 26, 2019
Merged

Conversation

penberg
Copy link
Contributor

@penberg penberg commented Mar 22, 2019

We partition keyspace between different concurrent goroutines to ensure
there are no concurrent writes when we read. However, as pointed out by
Henrik, the partition keys are mapped to tokens and there are no
guarantees that the mapping respects the partitioning for arbitrary
types, which can lead to a concurrent write on the partition we are
reading from.

Threfore, restrict partition key type to int, which fixes
the Gemini complaint that oracle and test cluster results sets have
different sizes.

We partition keyspace between different concurrent goroutines to ensure
there are no concurrent writes when we read. However, as pointed out by
Henrik, the partition keys are mapped to tokens and there are no
guarantees that the mapping respects the partitioning for arbitrary
types, which can lead to a concurrent write on the partition we are
reading from.

Threfore, restrict partition key type to int, which fixes
the Gemini complaint that oracle and test cluster results sets have
different sizes.
@dahankzter dahankzter merged commit 5ab4b1f into master Mar 26, 2019
@penberg penberg deleted the int-partition-keys branch May 18, 2019 07:00
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