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

ACID: DbTxnManager heartbeat-service needs static sync init

    XMLWordPrintableJSON

Details

    Description

      private synchronized void initHeartbeatExecutorService() {
          if (heartbeatExecutorService != null && !heartbeatExecutorService.isShutdown()
              && !heartbeatExecutorService.isTerminated()) {
            return;
          }
      ...
      

      heartbeatExecutorService is a static field, so this needs class sync, not object sync.

      Attachments

        1. HIVE-19199.1.patch
          2 kB
          Gopal Vijayaraghavan
        2. HIVE-19199.1.patch
          2 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: