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

nats-io / nats-server / 5119 / 2
89%
main: 83%

Build:
Build:
LAST BUILD BRANCH: fix_code_coverage
DEFAULT BRANCH: main
Ran 26 Apr 2020 06:06PM UTC
Files 34
Run time 3s
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

26 Apr 2020 05:56PM UTC coverage: 88.498% (-0.04%) from 88.536%
GO111MODULE=off

push

travis-ci

derekcollison
Services rewrite #2

This contains a rewrite to the services layer for exporting and importing. The code this merges to already had a first significant rewrite that moved from special interest processing to plain subscriptions.

This code changes the prior version's dealing with reverse mapping which was based mostly on thresholds and manual pruning, with some sporadic timer usage. This version uses the jetstream branch's code that understands interest and failed deliveries. So this code is much more tuned to reacting to interest changes. It also removes thresholds and goes only by interest changes or expirations based around a new service export property, response thresholds. This allows a service provider to provide semantics on how long a response should take at a maximum.

This commit also introduces formal support for service export streamed and chunked response types send an empty message to signify EOF.

This commit also includes additions to the service latency tracking such that errors are now sent, not only successful interactions. We have added a Status field and an optional Error fields to ServiceLatency.

We support the following Status codes, these are directly from HTTP.

400 Bad Request (request did not have a reply subject)
408 Request Timeout (when system detects request interest went away, old request style to make dependable)..
503 Service Unavailable (no service responders running)
504 Service Timeout (The new response threshold expired)

Signed-off-by: Derek Collison <derek@nats.io>

23006 of 25996 relevant lines covered (88.5%)

62492.74 hits per line

Source Files on job 5119.2 (GO111MODULE=off)
  • Tree
  • List 0
  • Changed 26
  • Source Changed 4
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1222
  • Travis Job 5119.2
  • e6dd2b09 on github
  • Prev Job for GO111MODULE=off on services_rewrite (#5115.2)
  • Next Job for GO111MODULE=off on services_rewrite (#5121.2)
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