Cap test span writes in span_telemetry_context_impl_test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.0.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • v9.0
    • Programmability 2026-07-07
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In ConcurrentSetSpanAndGetSpan, a writer thread creates new spans until the readers are done with 10000 reads.

          stdx::thread writer([&] {
              while (!stop.load()) {
                  impl.setSpan(makeValidSpan());
              }
          }); 

      Every setSpan call appends another DataList node, so on machines where the reads take a while, this causes stack overflow.

      We should either cap the number of writes here, or just reuse a valid span.

            Assignee:
            Alex Li
            Reporter:
            Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: