Open tongjixianing opened 2 years ago
I checked the table schema for table cluster and properties columns already existed.
CREATE TABLE reaper_db.cluster (
name text PRIMARY KEY,
partitioner text,
properties text,
seed_hosts set<text>
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
List of tables in reaper_db keyspace and it looks like all the tables have been created.
describe tables;
running_reapers cluster leader
repair_unit_v1 schema_migration_leader
repair_schedule_by_cluster_and_keyspace snapshot
repair_run_by_cluster node_metrics_v1
repair_schedule_v1 repair_run
schema_migration repair_run_by_unit
@adejanovski this should be unblocked now, I finally got around to making the changes and they just got merged: https://github.com/dropwizard/dropwizard-cassandra/pull/106
Any news on this?
It seems that there is a "maxSchemaAgreementWait" parameter mentioned in the cassandra backend specific configuration but it doesn't seem to do anything when changing the value and still causes a timeout after just 10 seconds.
Not for now. We'd need to move to the dropwizard-cassandra bundle to benefit from this option. We'll soon attempt to upgrade to java 17 or 21, which will probably be the right time to upgrade all of our dependencies and probably switch to this bundle as well.
I've created #1437 to track this.
Project board link
The cluster has 100+ nodes running a high workload from the client.
Reaper failed to start and reported the schema validation errors.
In the reaper log, first it reported the schema check timeout when it created tables.
maxSchemaAgreementWaitSeconds
is the driver option with 10 seconds value by default but there is no place to configure this timeout in cassandra-reaper.yamlThen it is trying to alter the table - cluster by adding a new column and reporting the same timeout.
After that, it try to add the column - properties in cluster table again but the column already existed.
It just keeps looping with adding the existing column and reaper seems never getting out of this error.
┆Issue is synchronized with this Jira Story by Unito