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

grpc / grpc-java / 16930
88%
master: 89%

Build:
Build:
LAST BUILD BRANCH: v1.77.x
DEFAULT BRANCH: master
Ran 22 Jan 2020 01:07AM UTC
Jobs 1
Files 271
Run time 27s
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
16930

push

travis-ci

dapengzhang0
netty: fix a race for channelz at server transport creation

A race condition was reported by user in #6601:

`ServerImpl.start()` calls `NettyServer.start()` while holding `ServerImpl.lock`. `NettyServer.start()` awaits a submitted runnable in eventloop. However, this pending runnable may never be executed because the eventloop might be executing some other task, like `ServerListenerImpl.transportCreated()`, that is trying to acquire `ServerImpl.lock` causing a deadlock.

This PR resolves the particular issue reported in #6601 for server with a single port, but `NettyServer` (https://github.com/grpc/grpc-java/blob/v1.26.0/netty/src/main/java/io/grpc/netty/NettyServer.java#L251) and `ServerImpl` (https://github.com/grpc/grpc-java/blob/v1.26.0/core/src/main/java/io/grpc/internal/ServerImpl.java#L184) in general still have the same potential risk of deadlock, which need further fix.

16127 of 18426 relevant lines covered (87.52%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16930.1 22 Jan 2020 01:07AM UTC 0
87.52
Travis Job 16930.1
Source Files on build 16930
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #16930
  • 8c346d00 on github
  • Prev Build on v1.27.x (#16925)
  • Next Build on v1.27.x (#17108)
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