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

apache / bookkeeper / 32 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2018 01:53PM UTC
Files 396
Run time 10s
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

25 Mar 2018 01:53PM UTC coverage: 72.458% (+0.01%) from 72.445%
32.1

push

jenkins

Sijie Guo
Refactored logAndConvertStatus() to avoid allocation when debug is off

The method `logAndConvertStatus(StatusCode status, int defaultStatus, Object... extraInfo)` is being called when processing the response for each write/read request in `PerChannelBookieClient`.

The logging is only done at debug level and the `extraInfo` is not used otherwise. By taking the `Object...` we're effectively taking a `Object[]` that is allocated each time, along with the boxing for ledgerId/entryId.

Refactored the code separate the logging and the status code conversion, so that we can skip the allocation when debug is off.

Author: Matteo Merli <mmerli@apache.org>

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1291 from merlimat/log-and-convert-status

23001 of 31744 relevant lines covered (72.46%)

0.72 hits per line

Source Files on job 32.1
  • Tree
  • List 0
  • Changed 24
  • Source Changed 2
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 32
  • 4fe823ba on github
  • Prev Job for on master (#31.1)
  • Next Job for on master (#33.1)
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