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

grpc / grpc-java / 16883
89%

Build:
DEFAULT BRANCH: master
Ran 16 Jan 2020 08:04PM UTC
Jobs 1
Files 271
Run time 24s
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
16883

push

travis-ci

web-flow
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.

16124 of 18426 relevant lines covered (87.51%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16883.1 16 Jan 2020 08:04PM UTC 0
87.51
Travis Job 16883.1
Source Files on build 16883
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #16883
  • b8474d61 on github
  • Prev Build on master (#16868)
  • Next Build on master (#16901)
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

© 2026 Coveralls, Inc