----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57482/#review168641 -----------------------------------------------------------
I think I would rather keep the ping interval equal to the setting and make the other side more resilient to single missed pings. What is this pinging? - Galen O'Sullivan On March 9, 2017, 10:38 p.m., Hitesh Khamesra wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/57482/ > ----------------------------------------------------------- > > (Updated March 9, 2017, 10:38 p.m.) > > > Review request for geode. > > > Repository: geode > > > Description > ------- > > Client ping thread wakes up every "ping-interval" and then it checks whether > someone already did some operation on that server or not, in the last > ping-interval. If there is some operation, then it doesn't ping server and > wakes up again after ping-interval. But if operation happens just start of > the previous ping-interval then client thread will ping server after more > then ping-interval. This can cause an issue. Thus to avoid this race > condition, now ping thread will wake up in ping-interval/2 and will make sure > it pings server. > > > Diffs > ----- > > > geode-core/src/main/java/org/apache/geode/cache/client/internal/LiveServerPinger.java > bcb8eec > > geode-core/src/test/java/org/apache/geode/cache/client/internal/ConnectionPoolImplJUnitTest.java > 272580d > > > Diff: https://reviews.apache.org/r/57482/diff/1/ > > > Testing > ------- > > > Thanks, > > Hitesh Khamesra > >