• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GoogleCloudPlatform / google-cloud-java / 4275
72%

Build:
DEFAULT BRANCH: master
Ran 27 Jul 2017 02:47PM UTC
Jobs 1
Files 496
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4275

Pull #2281

travis-ci

web-flow
google-cloud-nio: retry in more situations upon retryable errors

There were a number of operations in google-cloud-nio that were prone
to intermittent failures (such as 503 errors) when run at scale, but
which were not wrapped in a retry loop or hooked up to the client settings
for number of retries/reopens. This rendered the google-cloud-nio library
effectively unusable at scale.

This commit wraps those additional operations in CloudStorageReadChannel
and CloudStorageFileSystemProvider within retry/reopen loops, with the number
of retries/reopens determined by the "maxChannelReopens" client settings.

If the client has not set "maxChannelReopens", they'll still get a nice
error message with the underlying error (such as a 503), plus an indication
that 0 retries/reopens were attempted.

To facilitate this change, we've added a CloudStorageRetryHandler that
keeps track of the total number of retry/reopen attempts, and throws
an appropriate exception when out of attempts.

Note that this change doesn't affect the normal retries done at a
lower level by the cloud.storage.Storage object.
Pull Request #2281: google-cloud-nio: retry in more situations upon retryable errors

122 of 122 new or added lines in 4 files covered. (100.0%)

19882 of 24995 relevant lines covered (79.54%)

56986.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannel.java
11
100.0
google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageRetryHandler.java
15
100.0
google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java
Jobs
ID Job ID Ran Files Coverage
2 4275.2 27 Jul 2017 02:47PM UTC 0
79.54
Travis Job 4275.2
Source Files on build 4275
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #4275
  • Pull Request #2281
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc