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

the method closeSession of SessionManager has a synchronized, is it able to be removed?

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.1.1
    • 4.0.0-alpha-2
    • HiveServer2
    • None

    Description

      The methods closeSession of 

      org.apache.hive.service.cli.session.SessionManager use 

      synchronized for thread safe, i looked at the code and wonder why there's need for synchronized.

      Because closeSession sometimes use the hadoop ipc call and takes too much time to response, so if it is possible to remove the keyword synchronized.

      Attachments

        Issue Links

          Activity

            People

              ngangam Naveen Gangam
              xulongfetion xulongfetion
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: