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

uber / cadence-java-client / 2413
80%

Build:
DEFAULT BRANCH: master
Ran 09 Jul 2024 12:26AM UTC
Jobs 1
Files 274
Run time 1min
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

03 Jul 2024 08:33PM UTC coverage: 61.437% (-0.08%) from 61.518%
2413

push

buildkite

web-flow
Avoid consuming ByteBuffers (#913)

A ByteBuffer is a pointer to a byte[] with a starting position, a current position, and a limit. Any function that reads from its contents updates the current position. Both TracingPropagator and WorkflowUtils copy the entirety of its contents, and in doing so they mutate the current position. WorkflowUtils resets it afterwards but this still isn't thread-safe as another thread may be trying to read it.

By duplicating the ByteBuffer (copying only the metadata, not the actual contents) we avoid modifying it. It doesn't seem likely that there's real impact in either of these cases beyond unit tests, where these ByteBuffers stick around in the workflow history and are repeatedly serialized/deserialized. Modifying them during serialization can create test flakiness as that can trigger exceptions.

2 of 2 new or added lines in 2 files covered. (100.0%)

15 existing lines in 5 files now uncovered.

11966 of 19477 relevant lines covered (61.44%)

0.61 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.58
-0.88% src/main/java/com/uber/cadence/internal/sync/WorkflowThreadContext.java
2
11.1
-0.14% src/main/java/com/uber/cadence/serviceclient/WorkflowServiceTChannel.java
3
61.18
-3.53% src/main/java/com/uber/cadence/internal/replay/DecisionStateMachineBase.java
4
68.42
-21.05% src/main/java/com/uber/cadence/internal/common/BackoffThrottler.java
5
89.72
-4.67% src/main/java/com/uber/cadence/internal/replay/ActivityDecisionContext.java
Jobs
ID Job ID Ran Files Coverage
1 2413.1 09 Jul 2024 12:26AM UTC 274
61.44
Source Files on build 2413
  • Tree
  • List 274
  • Changed 7
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #2413
  • 153df859 on github
  • Prev Build on master (#2406)
  • Next Build on master (#2415)
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