Bug 594693 - ypbind probes for the fastest server too often
ypbind probes for the fastest server too often
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ypbind (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Karel Klíč
Alex Sersen
Depends On: 594668
  Show dependency treegraph
Reported: 2010-05-21 07:01 EDT by Karel Klíč
Modified: 2013-10-31 21:33 EDT (History)
5 users (show)

See Also:
Fixed In Version: ypbind-1.20.4-24.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 594668
Last Closed: 2010-11-10 17:00:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Karel Klíč 2010-05-21 07:01:11 EDT
+++ This bug was initially created as a clone of Bug #594668 +++

Description of problem:
The ypbind manual page says that it checks the current server every 20s to confirm it is up, and also pings all configured servers every 15 minutes to check on which is currently the fastest to respond. In fact it pings the servers every minute which may cause ypbind to flip the servers very often.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. configure ypbind to try to contact more servers, i.e. add two servers to /etc/yp.conf (one of them must be reachable):


2. start ypbind in the debug mode

ypbind -debug

3. it logs out the pings of the servers
Actual results:
The "Check new for fastest server." logs appear every minute:

Expected results:
The "Check new for fastest server" logs appear every 15 minutes (as documented)

Additional info:
This seems to be caused by the ypbind-mt-1.19-log-binds.patch which contains the following chunk:
@@ -1031,7 +1067,8 @@ test_bindings (void *param __attribute__
      pthread_exit (&success);

     lastcheck += ping_interval;
-      if (lastcheck >= 900) /* 900 = 15min. */
+      //if (lastcheck >= 900) /* 900 = 15min. */
+      if (lastcheck >= 60) /* 900 = 15min. */

At the first glance it looks like this has been added for the debugging purposes to test the patch for the bug #198689.  We should revert this part or explain why does the interval have to be shortened this much and fix the documentation.

--- Additional comment from kklic@redhat.com on 2010-05-21 06:55:09 EDT ---

Correct, it seems it was added for debugging purposes.
The limit should be set back to 900.
Comment 2 RHEL Product and Program Management 2010-05-21 08:55:57 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
Comment 5 releng-rhel@redhat.com 2010-11-10 17:00:14 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.