You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by pa...@apache.org on 2017/12/06 21:25:08 UTC
[2/2] cassandra-dtest git commit: ninja: fix view build progress
table name (follow-up CASSANDRA-12245)
ninja: fix view build progress table name (follow-up CASSANDRA-12245)
Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/ccc6e188
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/ccc6e188
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/ccc6e188
Branch: refs/heads/master
Commit: ccc6e188b4b419dd4a0d8d1245a6138ab26d3d7e
Parents: b5fde20
Author: Zhao Yang <zh...@gmail.com>
Authored: Wed Dec 6 19:43:45 2017 +0800
Committer: Paulo Motta <pa...@apache.org>
Committed: Thu Dec 7 08:24:52 2017 +1100
----------------------------------------------------------------------
materialized_views_test.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/ccc6e188/materialized_views_test.py
----------------------------------------------------------------------
diff --git a/materialized_views_test.py b/materialized_views_test.py
index 482ff6a..e929e7a 100644
--- a/materialized_views_test.py
+++ b/materialized_views_test.py
@@ -109,7 +109,8 @@ class TestMaterializedViews(Tester):
def _view_build_finished(node):
s = self.patient_exclusive_cql_connection(node)
- result = list(s.execute("SELECT * FROM system.views_builds_in_progress WHERE keyspace_name='%s' AND view_name='%s'" % (ks, view)))
+ view_build_table = 'view_builds_in_progress' if self.cluster.version() >= '4' else 'views_builds_in_progress'
+ result = list(s.execute("SELECT * FROM system.%s WHERE keyspace_name='%s' AND view_name='%s'" % (view_build_table, ks, view)))
return len(result) == 0
for node in self.cluster.nodelist():
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org