From 9c59a4d825059dc7bd9812b98ce7c90473808b94 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Wed, 11 Oct 2023 14:14:54 -0700 Subject: [PATCH] fix dual read data match log (#942) --- .../d2/balancer/dualread/DualReadLoadBalancerMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancerMonitor.java b/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancerMonitor.java index 2ba2d6af30..1084501963 100644 --- a/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancerMonitor.java +++ b/d2/src/main/java/com/linkedin/d2/balancer/dualread/DualReadLoadBalancerMonitor.java @@ -79,7 +79,7 @@ public void reportData(String propertyName, T property, String propertyVersion, if (!isEqual(entry, newEntry)) { _rateLimitedLogger.warn("Received mismatched properties from dual read. Old LB: {}, New LB: {}", - entry, newEntry); + fromNewLb ? entry : newEntry, fromNewLb ? newEntry : entry); incrementEntryOutOfSyncCount(); // increment the out-of-sync count for the entry received later } else