Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10589

Thread.wait not in loop in HWISessionItem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Web UI
    • None

    Description

      Usually in multi-threading programming Thread.wait() should be in "while" loop.
      So, "if" statement below should be replaced with "while". HWISessionItem (121-128)

          synchronized (runnable) {
            if (status != WebSessionItemStatus.READY) {
              try {
                runnable.wait();
              } catch (Exception ex) {
              }
            }
          }
      

      Attachments

        1. HIVE-10589.1.patch
          0.7 kB
          Alexander Pivovarov
        2. rb33797.patch
          0.7 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: