kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [5/9] incubator-kudu git commit: python: start master with default_num_replicas=1
Date Tue, 02 Feb 2016 06:55:28 GMT
python: start master with default_num_replicas=1

The python tests became flaky after we changed the default number of replicas
to 3, because they assume read-your-writes semantics. With multiple replicas,
we don't guarantee this quite yet unless you specifically ask for it.

Change-Id: Ied02e8c1e0f3d06ff03509d846548e94667399ee
Reviewed-on: http://gerrit.cloudera.org:8080/1984
Reviewed-by: Jean-Daniel Cryans
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/cecdb47c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/cecdb47c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/cecdb47c

Branch: refs/heads/master
Commit: cecdb47ce4887bf4903acd825e26158b200e14e9
Parents: 4cc1a03
Author: Todd Lipcon <todd@apache.org>
Authored: Mon Feb 1 15:57:50 2016 -0800
Committer: Todd Lipcon <todd@apache.org>
Committed: Tue Feb 2 01:58:49 2016 +0000

----------------------------------------------------------------------
 python/kudu/tests/common.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/cecdb47c/python/kudu/tests/common.py
----------------------------------------------------------------------
diff --git a/python/kudu/tests/common.py b/python/kudu/tests/common.py
index 988b7d7..ba01260 100644
--- a/python/kudu/tests/common.py
+++ b/python/kudu/tests/common.py
@@ -60,6 +60,9 @@ class KuduTestBase(object):
             "-log_dir={0}/master/logs".format(local_path),
             "-logtostderr",
             "-webserver_port=0",
+            # Only make one replica so that our tests don't need to worry about
+            # setting consistency modes.
+            "-default_num_replicas=1",
             "-server_dump_info_path={0}/master/config.json".format(local_path)
         ]
 


Mime
View raw message