CNDB -15904: Move NeworkTopologyStrategy to use NoSpamLogger during initialization#2191
CNDB -15904: Move NeworkTopologyStrategy to use NoSpamLogger during initialization#2191scottfines wants to merge 1 commit intomainfrom
Conversation
Checklist before you submit for review
|
|
The unticketed test failure( |
src/java/org/apache/cassandra/locator/NetworkTopologyStrategy.java
Outdated
Show resolved
Hide resolved
aab5d54 to
c00db50
Compare
|
A note on testing here It's nontrivial to write an explicit test about whether or not a log message appears "enough times". However, the constructor itself is well tested for functionality reasons, particularly in |
src/java/org/apache/cassandra/locator/NetworkTopologyStrategy.java
Outdated
Show resolved
Hide resolved
|
how's the PR checklist going ? |
460c78a to
9cd0b42
Compare
|
❌ Build ds-cassandra-pr-gate/PR-2191 rejected by Butler4 regressions found Found 4 new test failures
Found 3 known test failures |
…ogging changes to the topology.
There was a problem hiding this comment.
cndb ci results look good. https://github.com/riptano/cndb/pull/16508
please make sure not to forget anything on the checklist and def of done. (ask if there's anything uncertain)



Move the initialization log message in
NetworkTopologyStrategyto useNoSpamLogger.Summary
NetworkTopologyStrategylogs the datacenter configuration during initialization of Keyspace data, probably because it was useful information and the Keyspace information doesn't get constructed all that often. But in CNDB, it gets reconstructed every time data is deserialized from etcd. The end result is spamming the CNDB process logs, especially during SSTable cleanup tasks. This change reduces the spam effect to once every 10 minutes.This resolves https://github.com/riptano/cndb/issues/15904