summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-03-14 14:27:20 -0400
committerMathias Stearn <mathias@10gen.com>2014-03-14 14:54:20 -0400
commit346f26f8ca4276c0594483659076400c67fb69b7 (patch)
tree3bd8f3ae1d6841c9ccf256db6410264e6a85801e /buildscripts
parent17c1212b5f84b0b2c666adc39c9f23d4a919a137 (diff)
downloadmongo-346f26f8ca4276c0594483659076400c67fb69b7.tar.gz
Fix build-failure with small-oplog tests
The theory here is that the test exited with writes still in flight and the dbhash was executed on the master and the slave at different logical points in time.
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 109e485d90c..aacdc88f0e4 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -754,7 +754,10 @@ at the end of testing:""" % (src, dst)
at the end of testing:"""
for coll in screwy_in_slave.keys():
stats = screwy_in_slave[coll]
- print "collection: %s\t (master/slave) hashes: %s/%s counts: %i/%i" % (coll, stats['hashes']['master'], stats['hashes']['slave'], stats['counts']['master'], stats['counts']['slave'])
+ # Counts are "approx" because they are collected after the dbhash runs and may not
+ # reflect the states of the collections that were hashed. If the hashes differ, one
+ # possibility is that a test exited with writes still in-flight.
+ print "collection: %s\t (master/slave) hashes: %s/%s counts (approx): %i/%i" % (coll, stats['hashes']['master'], stats['hashes']['slave'], stats['counts']['master'], stats['counts']['slave'])
if "docs" in stats:
if (("master" in stats["docs"] and len(stats["docs"]["master"]) != 0) or
("slave" in stats["docs"] and len(stats["docs"]["slave"]) != 0)):