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

apache / bookkeeper / 32
72%

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

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

Jobs
ID Job ID Ran Files Coverage
1 32.1 25 Mar 2018 01:53PM UTC 0
72.46
Source Files on build 32
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #32
  • 4fe823ba on github
  • Prev Build on master (#31)
  • Next Build on master (#33)
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