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

grpc / grpc-java / #20028
89%

Build:
DEFAULT BRANCH: master
Ran 24 Oct 2025 11:14PM UTC
Jobs 1
Files 621
Run time 1min
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

24 Oct 2025 11:03PM UTC coverage: 88.606% (-0.005%) from 88.611%
#20028

push

github

web-flow
Fix a BinderServerTransport crash in the rare shutdown-before-start case (#12440)

The `isShutdown()` clause of `BinderServerTransport#start()` code was completely
untested and did not in fact work.

The problem is that if the listener does in fact arrive via start()
after shutdown, BinderTransport's `shutdownInternal()` has already set
the state to `SHUTDOWN_TERMINATED` (which is not a valid transition from
itself). It has also already scheduled a call to notifyTerminated() and
releaseExecutors(). This causes a duplicate call to
`transportTerminated` and releasing the same executor twice.

This commit changes `start()` to leave changing state and releasing
executors to `shutdownInternal()`'s. `notifyTerminated()` either runs
then (if already started) or from within `start()` (if not yet started)

Fixes #12439.

34955 of 39450 relevant lines covered (88.61%)

0.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.65
0.41% ../core/src/main/java/io/grpc/internal/DelayedClientCall.java
4
74.23
-4.12% ../servlet/src/main/java/io/grpc/servlet/AsyncServletOutputStreamWriter.java
5
83.02
-9.43% ../core/src/main/java/io/grpc/internal/Http2Ping.java
Jobs
ID Job ID Ran Files Coverage
1 #20028.1 24 Oct 2025 11:14PM UTC 621
88.61
Source Files on build #20028
  • Tree
  • List 621
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20028
  • 91f3f4dc on github
  • Prev Build on master
  • Next Build on master
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