-
Notifications
You must be signed in to change notification settings - Fork 80
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
move schema check to allow expansions with external DCs #1273
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d1edf3a
move schema check to allow expansions with external DCs
adejanovski df8aa44
Change the condition to allow modifying the schema
adejanovski c4cf8b3
Fix envtests
adejanovski ffdb20a
Update changelog
adejanovski 487e5c8
Add e2e test
adejanovski d509dd1
Add e2e test for external DC expansion
adejanovski c663b10
Fix schema updates by allowing healthy dcs to get the schema changes
adejanovski 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
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,95 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: test-superuser | ||
data: | ||
password: dDBwLVNlY3JldA== | ||
username: dGVzdC1zdXBlcnVzZXI= | ||
type: Opaque | ||
--- | ||
apiVersion: cassandra.datastax.com/v1beta1 | ||
kind: CassandraDatacenter | ||
metadata: | ||
name: dc1 | ||
spec: | ||
clusterName: test | ||
config: | ||
cassandra-env-sh: | ||
additional-jvm-opts: | ||
- >- | ||
-Dcassandra.jmx.authorizer=org.apache.cassandra.auth.jmx.AuthorizationProxy | ||
- >- | ||
-Djava.security.auth.login.config=$CASSANDRA_HOME/conf/cassandra-jaas.config | ||
- '-Dcassandra.jmx.remote.login.config=CassandraLogin' | ||
- '-Dcom.sun.management.jmxremote.authenticate=true' | ||
cassandra-yaml: | ||
authenticator: PasswordAuthenticator | ||
authorizer: CassandraAuthorizer | ||
auto_snapshot: false | ||
cas_contention_timeout_in_ms: 60000 | ||
commitlog_segment_size_in_mb: 2 | ||
compaction_throughput_mb_per_sec: 0 | ||
concurrent_compactors: 1 | ||
concurrent_counter_writes: 2 | ||
concurrent_reads: 2 | ||
concurrent_writes: 2 | ||
counter_cache_size_in_mb: 0 | ||
counter_write_request_timeout_in_ms: 60000 | ||
key_cache_size_in_mb: 0 | ||
memtable_flush_writers: 1 | ||
num_tokens: 256 | ||
prepared_statements_cache_size_mb: 1 | ||
range_request_timeout_in_ms: 60000 | ||
read_request_timeout_in_ms: 60000 | ||
request_timeout_in_ms: 60000 | ||
role_manager: CassandraRoleManager | ||
slow_query_log_timeout_in_ms: 0 | ||
sstable_preemptive_open_interval_in_mb: 0 | ||
start_rpc: false | ||
thrift_prepared_statements_cache_size_mb: 1 | ||
truncate_request_timeout_in_ms: 60000 | ||
write_request_timeout_in_ms: 60000 | ||
jvm-options: | ||
garbage_collector: G1GC | ||
initial_heap_size: 402653184 | ||
max_heap_size: 402653184 | ||
networking: | ||
hostNetwork: true | ||
podTemplateSpec: | ||
spec: | ||
containers: | ||
- env: | ||
- name: METRIC_FILTERS | ||
value: >- | ||
deny:org.apache.cassandra.metrics.Table | ||
deny:org.apache.cassandra.metrics.table | ||
allow:org.apache.cassandra.metrics.table.live_ss_table_count | ||
allow:org.apache.cassandra.metrics.Table.LiveSSTableCount | ||
allow:org.apache.cassandra.metrics.table.live_disk_space_used | ||
allow:org.apache.cassandra.metrics.table.LiveDiskSpaceUsed | ||
allow:org.apache.cassandra.metrics.Table.Pending | ||
allow:org.apache.cassandra.metrics.Table.Memtable | ||
allow:org.apache.cassandra.metrics.Table.Compaction | ||
allow:org.apache.cassandra.metrics.table.read | ||
allow:org.apache.cassandra.metrics.table.write | ||
allow:org.apache.cassandra.metrics.table.range | ||
allow:org.apache.cassandra.metrics.table.coordinator | ||
allow:org.apache.cassandra.metrics.table.dropped_mutations | ||
- name: MANAGEMENT_API_HEAP_SIZE | ||
value: '67108864' | ||
name: cassandra | ||
resources: {} | ||
resources: {} | ||
serverType: cassandra | ||
serverVersion: 3.11.14 | ||
size: 2 | ||
storageConfig: | ||
cassandraDataVolumeClaimSpec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
storageClassName: standard | ||
superuserSecretName: test-superuser | ||
systemLoggerResources: {} |
Oops, something went wrong.
Oops, something went wrong.
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.
Note: I needed to build amd64 images on my M2 pro and this was not working so I fixed it in the process.