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 QueueV2.CreateQueue and implement it for Cassandra #4904

Merged
merged 1 commit into from Oct 7, 2023

Conversation

MichaelSnowden
Copy link
Contributor

What changed?
I added the CreateQueue method to the QueueV2 interface. I also implemented it for Cassandra. Finally, I added some validation for the read and write methods of queue messages to check that their corresponding queue exists.

Why?
We need to create queues to track the minimum message ID in order to prevent us from scanning over deleted tombstone messages in Cassandra when reading from the front of the queue.

How did you test it?
There is 100% test coverage for everything.

Potential risks

Is hotfix candidate?

@MichaelSnowden MichaelSnowden requested a review from a team as a code owner September 26, 2023 21:00
@MichaelSnowden MichaelSnowden force-pushed the snowden/create-queue branch 2 times, most recently from 517054a to 501338b Compare September 28, 2023 13:49
Base automatically changed from snowden/dlq-feature to main September 28, 2023 17:07
@MichaelSnowden MichaelSnowden force-pushed the snowden/create-queue branch 4 times, most recently from 082e881 to 22c4822 Compare September 29, 2023 13:00
common/util.go Outdated Show resolved Hide resolved
service/frontend/http_api_server.go Outdated Show resolved Hide resolved
common/persistence/cassandra/queue_v2_store.go Outdated Show resolved Hide resolved
@MichaelSnowden MichaelSnowden enabled auto-merge (squash) October 7, 2023 00:06
@MichaelSnowden MichaelSnowden merged commit b536313 into main Oct 7, 2023
10 checks passed
@MichaelSnowden MichaelSnowden deleted the snowden/create-queue branch October 7, 2023 00:46
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.

None yet

2 participants