You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/07 00:33:14 UTC
[5/5] couchdb commit: updated refs/heads/1843-feature-bigcouch to
9bc60be
Avoid iterating pipe handles for latency
Aparrently the line iterator on these pipe objects introduces a bit of
latency. The delayed_commits test breaks if the server doesn't restart
within a second so this is the fix.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9bc60be5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9bc60be5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9bc60be5
Branch: refs/heads/1843-feature-bigcouch
Commit: 9bc60be52c987aa04b78cae48160c2cfbc49fd1e
Parents: 39c5c97
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Feb 6 17:31:59 2014 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Thu Feb 6 17:31:59 2014 -0600
----------------------------------------------------------------------
test/javascript/run | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/9bc60be5/test/javascript/run
----------------------------------------------------------------------
diff --git a/test/javascript/run b/test/javascript/run
index fa7f391..e120d72 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -55,9 +55,13 @@ def run_couchjs(test):
stdout = sp.PIPE,
stderr = sys.stderr
)
- for line in p.stdout:
+ while True:
+ line = p.stdout.readline()
+ if not line:
+ break
if line.strip() == "restart":
- print "reboot_nodes()"
+ sys.stdout.write("reboot_nodes()" + os.linesep)
+ sys.stdout.flush()
else:
sys.stderr.write(line)
p.wait()