Skip to content

Commit

Permalink
Merge pull request vitessio#1262 from aaijazi/aaijazi_deflake_worker_…
Browse files Browse the repository at this point in the history
…test

Make worker.py test wait longer between resolving the master tablet
  • Loading branch information
aaijazi committed Oct 30, 2015
2 parents 6265e10 + b92e75b commit c931cee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,11 @@ def _get_vtworker_cmd(clargs, auto_log=False):
'-log_dir', environment.vtlogroot,
'-min_healthy_rdonly_endpoints', '1',
'-port', str(port),
'-resolve_ttl', '2s',
# use a long resolve TTL because of potential race conditions with doing
# an EmergencyReparent and resolving the master (as EmergencyReparent
# will delete the old master before updating the shard record with the
# new master)
'-resolve_ttl', '10s',
'-executefetch_retry_time', '1s',
'-tablet_manager_protocol',
protocols_flavor().tablet_manager_protocol(),
Expand Down

0 comments on commit c931cee

Please sign in to comment.