|
|
@ -338,9 +338,9 @@ def test_change_backend_service(gcp, original_backend_service, instance_group, |
|
|
|
_WAIT_FOR_STATS_SEC) |
|
|
|
_WAIT_FOR_STATS_SEC) |
|
|
|
try: |
|
|
|
try: |
|
|
|
patch_url_map_backend_service(gcp, alternate_backend_service) |
|
|
|
patch_url_map_backend_service(gcp, alternate_backend_service) |
|
|
|
stats = get_client_stats(_NUM_TEST_RPCS, _WAIT_FOR_STATS_SEC) |
|
|
|
# TODO(ericgribkoff) Verify no RPCs fail during backend switch. |
|
|
|
if stats.num_failures > 0: |
|
|
|
# Currently TD may briefly send an update with no localities if adding |
|
|
|
raise Exception('Unexpected failure: %s', stats) |
|
|
|
# the MIG to the backend service above races with the URL map patch. |
|
|
|
wait_until_all_rpcs_go_to_given_backends(alternate_backend_instances, |
|
|
|
wait_until_all_rpcs_go_to_given_backends(alternate_backend_instances, |
|
|
|
_WAIT_FOR_URL_MAP_PATCH_SEC) |
|
|
|
_WAIT_FOR_URL_MAP_PATCH_SEC) |
|
|
|
finally: |
|
|
|
finally: |
|
|
|