File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/it Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3737import static org .junit .Assert .assertNull ;
3838import static org .junit .Assert .assertTrue ;
3939
40+ import com .google .api .gax .rpc .DeadlineExceededException ;
4041import com .google .api .gax .rpc .NotFoundException ;
4142import com .google .cloud .datastore .AggregationQuery ;
4243import com .google .cloud .datastore .AggregationResult ;
@@ -450,8 +451,11 @@ protected void fetchAndValidateTrace(
450451 + numExpectedSpans
451452 + ", retrievedSpanCount="
452453 + retrievedTrace .getSpansCount ());
453- } catch (NotFoundException notFound ) {
454- logger .info ("Trace not found, retrying in " + GET_TRACE_RETRY_BACKOFF_MILLIS + " ms" );
454+ } catch (NotFoundException | DeadlineExceededException e ) {
455+ logger .info (
456+ "Trace not found or deadline exceeded, retrying in "
457+ + GET_TRACE_RETRY_BACKOFF_MILLIS
458+ + " ms" );
455459 } catch (IndexOutOfBoundsException outOfBoundsException ) {
456460 logger .info ("Call stack not found in trace. Retrying." );
457461 }
You can’t perform that action at this time.
0 commit comments