Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add QueueV2.CreateQueue and implement it for Cassandra (#4904)
<!-- Describe what has changed in this PR --> **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. <!-- Tell your future self why have you made these changes --> **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 have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** There is 100% test coverage for everything. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?**
- Loading branch information
1 parent
d54f4d8
commit b536313
Showing
28 changed files
with
1,351 additions
and
151 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.