[PATCH] tabled test: wait longer for init

Jeff Garzik <[email protected]>
Newsgroups org.kernel.vger.hail-devel
Message-ID <[email protected]>
commit b68e4608faeb618767678b4ab5d76e29eef2614f
Author: Jeff Garzik <[email protected]>
Date:   Fri Mar 5 08:18:21 2010 -0500

    [test] wait longer for tabled to initialize
    
    Signed-off-by: Jeff Garzik <[email protected]>

diff --git a/test/wait-for-listen.c b/test/wait-for-listen.c
index c1946c4..8cfdc56 100644
--- a/test/wait-for-listen.c
+++ b/test/wait-for-listen.c
@@ -133,9 +133,12 @@ int main()
  		 * Vote in DB4 replication takes about 12-13s.
 		 * In addition we may have retries when tabled polls for
 		 * Chunk daemons to come up. On busy boxes we may miss 20s.
+		 * So, 25s should be plenty, and we used that for a while,
+		 * but sometimes a daemon can fail establishing a session
+		 * with CLD and a retry takes a minute.
 		 */
-		if (time(NULL) >= start_time + 25) {
-			fprintf(stderr, "server is not up after 25 s\n");
+		if (time(NULL) >= start_time + 100) {
+			fprintf(stderr, "server is not up after 100 s\n");
 			exit(1);
 		}
 
@@ -159,6 +162,9 @@ int main()
 
 		sleep(2);
 	}
+
+	printf("      wait-for-listen: tabled went up after %ld s\n",
+	       (long)time(NULL) - start_time);
 	return 0;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.