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

ReferenceCountedSupplier hangs during release when Error is thrown during startup

    XMLWordPrintableJSON

    Details

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

      Description

      ReferenceCountedSupplier saves the reference to the service being started and then starts it. If the startup throws an Error then the failed service is stored, and then other clients also use the failed service since the reference is not null. During shutdown, the failed service will be stopped which can lead to the stop thread hanging (due to Guava not setting the service in failed state when Error is thrown)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: