Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4656 Add a container balancer tool or service for HDDS
  3. HDDS-7214

Continuous start & stop can have hanging threads in stopping

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    Description

      ContainerBalancer class while handling stop, set the field currentBalancingThread to null, thus marking it as stopped ( isBalancerRunning() method returning as false). But it continue to wait for thread to be stopped, i.e. not really stopped. 

      This has impact as:

      1. Hanging threads which is running (waiting to be stopped).
      2. Class fields are shared, this can impact when new start action comes and exiting thread is still running. Existing thread can continue to run as currentBalancingThread is set to not null, and can face other impact.

      Need to bring Stopping state and disallow start till existing operation of stop is completed. 

       

      Attachments

        Issue Links

          Activity

            People

              sumitagrawl Sumit Agrawal
              sumitagrawl Sumit Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: