cadence-java-client icon indicating copy to clipboard operation
cadence-java-client copied to clipboard

Memory Leak in Sticky Cache Pollers when tracing is enabled

Open shijiesheng opened this issue 1 year ago • 1 comments

Why

Bug is introduced in https://github.com/uber/cadence-java-client/pull/876

Symptom

Memory leak happens on every poller when tracing is enabled. Span objects grows since scope is not closed correctly.

Mitigation

Disable the tracer on both clients and workers.

// in workerOptions don't set tracer
WorkerOptions.newBuilder()
//     .setTracer()
       .build()

// in clientOptions don't set tracer
ClientOptions.newBuilder()
//     .setTracer()
       .build()

shijiesheng avatar May 15 '24 00:05 shijiesheng

Should be fixed by https://github.com/uber/cadence-java-client/pull/896

shijiesheng avatar May 15 '24 03:05 shijiesheng