Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3.0.29
* Do not spam the logs with MigrationCoordinator not able to pull schemas on bootstrap (CASSANDRA-18096)
* Fix incorrect resource name in LIST PERMISSION output (CASSANDRA-17848)
* Suppress CVE-2022-41854 and similar (CASSANDRA-18083)
* Fix running Ant rat targets without git (CASSANDRA-17974)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@
import org.apache.cassandra.net.MessagingService;
import org.apache.cassandra.schema.SchemaKeyspace;
import org.apache.cassandra.utils.FBUtilities;
import org.apache.cassandra.utils.NoSpamLogger;
import org.apache.cassandra.utils.concurrent.WaitQueue;

public class MigrationCoordinator
{
private static final Logger logger = LoggerFactory.getLogger(MigrationCoordinator.class);
private static final NoSpamLogger noSpamLogger = NoSpamLogger.getLogger(MigrationCoordinator.logger, 1, TimeUnit.MINUTES);
private static final RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
private static final Future<Void> FINISHED_FUTURE = Futures.immediateFuture(null);

Expand Down Expand Up @@ -498,7 +500,7 @@ private void pullSchema(Callback callback)
{
if (!isAlive(callback.endpoint))
{
logger.warn("Can't send schema pull request: node {} is down.", callback.endpoint);
noSpamLogger.warn("Can't send schema pull request: node {} is down.", callback.endpoint);
callback.fail();
return;
}
Expand Down