Skip to content

Commit

Permalink
Fixing flakiness in this test: triggering a ReloadSchema
Browse files Browse the repository at this point in the history
much earlier, so schema is there when we try to access
tables.
  • Loading branch information
alainjobart committed Oct 20, 2015
1 parent a68b69e commit 46701b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/vertical_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def _create_source_schema(self):
'-sql=' + create_view_template % ('view1', 'moving1'),
'source_keyspace'],
auto_log=True)
for t in [source_master, source_replica, source_rdonly1, source_rdonly2]:
utils.run_vtctl(['ReloadSchema', t.tablet_alias])

def _vtdb_conn(self):
addr = utils.vtgate.rpc_endpoint()
Expand Down Expand Up @@ -193,7 +195,6 @@ def _check_blacklisted_tables(self, tablet, expected):
self.assertNotIn('BlacklistedTables', status)

# check we can or cannot access the tables
utils.run_vtctl(['ReloadSchema', tablet.tablet_alias])
for t in ['moving1', 'moving2']:
if expected and 'moving.*' in expected:
# table is blacklisted, should get the error
Expand Down

0 comments on commit 46701b2

Please sign in to comment.