Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12670

ReferenceCountedSupplier hangs during release when Error is thrown during startup

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Datasets
    • Labels:
      None
    • Rank:
      1|i008bj:

      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:
                poorna Poorna Chandra
                Reporter:
                poorna Poorna Chandra
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: