spotify / heroic

The Heroic Time Series Database
https://spotify.github.io/heroic/
Apache License 2.0
848 stars 109 forks source link

Fix "...Span <span name> is GC'ed without being ended." issue (caused by a BT timeout) #761

Open sming opened 3 years ago

sming commented 3 years ago

100's of Tracing Spans are left un-ended from every query timeout

These un-ended spans represent a real runtime risk to heroic. If ~700-1000 of these are left hanging around after each timeout-d query, it's conceivable that the JVM will :

Proposed Solution

Repro Steps

List of methods concerned from logs

  1. ERROR io.opencensus.trace.Tracer - Span localMetricsManager.fetchSeries is GC'ed without being ended.
  2. ERROR io.opencensus.trace.Tracer - Span bigtable.fetchBatch is GC'ed without being ended.
sming commented 3 years ago

FYI @adsail , moving to inbox as it's not something we'll need to tackle until more aggressive timeouts are deployed