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

HiveServer2: Duplicated new OperationManager in SessionManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • None
    • None

    Description

      public class SessionManager extends CompositeService {
        private static final Log LOG = LogFactory.getLog(CompositeService.class);
        private HiveConf hiveConf;
        private final Map<SessionHandle, HiveSession> handleToSession = new HashMap<SessionHandle, HiveSession>();
        private OperationManager operationManager = new OperationManager();
        private static final Object sessionMapLock = new Object();
        private ExecutorService backgroundOperationPool;
      
        public SessionManager() {
          super("SessionManager");
        }
      
        @Override
        public synchronized void init(HiveConf hiveConf) {
          this.hiveConf = hiveConf;
          operationManager = new OperationManager();
          int backgroundPoolSize = hiveConf.getIntVar(ConfVars.HIVE_SERVER2_ASYNC_EXEC_THREADS);
          LOG.info("HiveServer2: Async execution pool size" + backgroundPoolSize);
          backgroundOperationPool = Executors.newFixedThreadPool(backgroundPoolSize);
          addService(operationManager);
          super.init(hiveConf);
        }
      

      Attachments

        1. HIVE-5732.1.patch.txt
          3 kB
          Navis Ryu

        Activity

          People

            navis Navis Ryu
            schubertzhang Schubert Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: