Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-2755

Fix findbugs warning in TezClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.1, 0.8.1-alpha
    • None
    • None

    Description

      Multithreaded correctness Warnings
      Code 	Warning
      SWL 	org.apache.tez.client.TezClient.stop() calls Thread.sleep() with a lock held
      	
      
      Bug type SWL_SLEEP_WITH_LOCK_HELD (click for details)
      In class org.apache.tez.client.TezClient
      In method org.apache.tez.client.TezClient.stop()
      At TezClient.java:[line 584]
      Details
      SWL_SLEEP_WITH_LOCK_HELD: Method calls Thread.sleep() with a lock held
      
      This method calls Thread.sleep() with a lock held. This may result in very poor performance and scalability, or a deadlock, since other threads may be waiting to acquire the lock. It is a much better idea to call wait() on the lock, which releases the lock and allows other threads to run. 
      

      Attachments

        1. TEZ-2755.2.patch
          0.5 kB
          Jonathan Turner Eagles
        2. TEZ-2755.1.patch
          0.7 kB
          Jonathan Turner Eagles

        Issue Links

          Activity

            People

              jeagles Jonathan Turner Eagles
              jeagles Jonathan Turner Eagles
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: