Uploaded image for project: 'Tephra'
  1. Tephra
  2. TEPHRA-271

Stopping transaction state cache should wait for the refresh thread to stop

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0-incubating
    • Component/s: core
    • Labels:
      None

      Description

      Transaction state cache has a background thread that refreshes transaction snapshots every now and then. This thread is started when transaction state cache is started, and stopped when transaction state cache is stopped. However, the stop does not wait for the thread to completely stop before returning. This can lead to race conditions when the calling code expects the thread to be completely stopped when transaction state cache is stopped.

        Attachments

          Activity

            People

            • Assignee:
              poornachandra Poorna Chandra
              Reporter:
              poornachandra Poorna Chandra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: