-
Notifications
You must be signed in to change notification settings - Fork 135
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
testing with AWS Keyspaces #866
Closed
Closed
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a4f92c4
testing with AWS Keyspaces
patriknw 540b78d
typo
ignasi35 db1b9a4
WIP: commit to run on EC2
ignasi35 0671236
Fix for CassandraSnapshotStoreSpec
ignasi35 4b713b2
Increase timeout for slow table creation environments
ignasi35 dbc4c2e
Refactor and cleanup
ignasi35 17247d0
Fix CassandraHealthCheckCustomQueryEmptyResultSpec
ignasi35 4c390d1
Fix akka.persistence.cassandra.query.TagViewSequenceNumberScannerSpec
ignasi35 c0f99e6
Fix akka.persistence.cassandra.healthcheck.CassandraHealthCheckDefau…
ignasi35 73ffbef
Leftover improvement to reduce flakiness
ignasi35 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,7 @@ akka.persistence.cassandra { | |
|
||
# Maximum number of messages that will be batched when using `persistAsync`. | ||
# Also used as the max batch size for deletes. | ||
max-message-batch-size = 100 | ||
max-message-batch-size = 30 | ||
|
||
# Target number of entries per partition (= columns per row). | ||
# Must not be changed after table creation (currently not checked). | ||
|
@@ -247,7 +247,7 @@ akka.persistence.cassandra { | |
# Max size of these batches. The best value for this will depend on the size of | ||
# the serialized events. Cassandra logs a warning for batches above a certain | ||
# size and this should be reduced if that warning is seen. | ||
max-message-batch-size = 150 | ||
max-message-batch-size = 30 | ||
|
||
# Max time to buffer events for before writing. | ||
# Larger values will increase cassandra write efficiency but increase the delay before | ||
|
@@ -591,14 +591,14 @@ datastax-java-driver { | |
profiles { | ||
akka-persistence-cassandra-profile { | ||
basic.request { | ||
consistency = QUORUM | ||
consistency = LOCAL_QUORUM | ||
# the journal does not use any counters or collections | ||
default-idempotence = true | ||
} | ||
} | ||
akka-persistence-cassandra-snapshot-profile { | ||
basic.request { | ||
consistency = ONE | ||
consistency = LOCAL_QUORUM | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it should be possible to use LOCAL_ONE for the reads but fails so might be required for the writes. |
||
# the snapshot store does not use any counters or collections | ||
default-idempotence = true | ||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
CREATE TABLE IF NOT EXISTS akka.messages ( | ||
persistence_id text, | ||
partition_nr bigint, | ||
sequence_nr bigint, | ||
timestamp timeuuid, | ||
timebucket text, | ||
writer_uuid text, | ||
ser_id int, | ||
ser_manifest text, | ||
event_manifest text, | ||
event blob, | ||
meta_ser_id int, | ||
meta_ser_manifest text, | ||
meta blob, | ||
tags set<text>, | ||
PRIMARY KEY ((persistence_id, partition_nr), sequence_nr, timestamp)); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.tag_views ( | ||
tag_name text, | ||
persistence_id text, | ||
sequence_nr bigint, | ||
timebucket bigint, | ||
timestamp timeuuid, | ||
tag_pid_sequence_nr bigint, | ||
writer_uuid text, | ||
ser_id int, | ||
ser_manifest text, | ||
event_manifest text, | ||
event blob, | ||
meta_ser_id int, | ||
meta_ser_manifest text, | ||
meta blob, | ||
PRIMARY KEY ((tag_name, timebucket), timestamp, persistence_id, tag_pid_sequence_nr)); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.tag_write_progress( | ||
persistence_id text, | ||
tag text, | ||
sequence_nr bigint, | ||
tag_pid_sequence_nr bigint, | ||
offset timeuuid, | ||
PRIMARY KEY (persistence_id, tag)); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.tag_scanning( | ||
persistence_id text, | ||
sequence_nr bigint, | ||
PRIMARY KEY (persistence_id)); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.metadata( | ||
persistence_id text PRIMARY KEY, | ||
deleted_to bigint, | ||
properties map<text,text>); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.all_persistence_ids( | ||
persistence_id text PRIMARY KEY); | ||
|
||
CREATE TABLE IF NOT EXISTS akka.snapshots ( | ||
persistence_id text, | ||
sequence_nr bigint, | ||
timestamp bigint, | ||
ser_id int, | ||
ser_manifest text, | ||
snapshot_data blob, | ||
snapshot blob, | ||
meta_ser_id int, | ||
meta_ser_manifest text, | ||
meta blob, | ||
PRIMARY KEY (persistence_id, sequence_nr)) | ||
WITH CLUSTERING ORDER BY (sequence_nr DESC); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
drop table if exists akka.all_persistence_ids; | ||
drop table if exists akka.messages; | ||
drop table if exists akka.metadata; | ||
drop table if exists akka.tag_scanning; | ||
drop table if exists akka.tag_views; | ||
drop table if exists akka.tag_write_progress; | ||
drop table if exists akka.snapshots; |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batches with more than 30 statements are not supported