v.24.1New Feature
Added FROM Modifier for SYSTEM SYNC REPLICA LIGHTWEIGHT Query
AddedFROM <Replicas>modifier forSYSTEM SYNC REPLICA LIGHTWEIGHTquery. With theFROMmodifier ensures we wait for fetches and drop-ranges only for the specified source replicas, as well as any replica not in zookeeper or with an empty source_replica. #58393 (Jayme Bird).
Why it matters
This feature solves the problem of broad synchronization scope in theSYSTEM SYNC REPLICA LIGHTWEIGHT query by enabling users to wait for fetches and drop-ranges only from specified source replicas. It improves control and efficiency when managing replica synchronization, especially in environments with multiple replicas.How to use it
Use the enhancedSYSTEM SYNC REPLICA LIGHTWEIGHT query with the FROM <Replicas> modifier to specify the source replicas to synchronize from. For example:SYSTEM SYNC REPLICA LIGHTWEIGHT FROM replica1, replica2This command waits for fetches and drop-ranges only for the listed replicas, as well as for any replica not present in ZooKeeper or having an empty source_replica field.