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

Parallel compilation: Operator::resetId() is not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.0.0
    • Physical Optimizer
    • None

    Description

        private static AtomicInteger seqId;
      ...
      
        public Operator() {
          this(String.valueOf(seqId.getAndIncrement()));
        }
      
        public static void resetId() {
          seqId.set(0);
        }
      

      Potential race-condition.

      Attachments

        1. HIVE-12758.03.patch
          258 kB
          Sergey Shelukhin
        2. HIVE-12758.03.patch
          245 kB
          Sergey Shelukhin
        3. HIVE-12758.02.patch
          245 kB
          Sergey Shelukhin
        4. HIVE-12758.01.patch
          233 kB
          Sergey Shelukhin
        5. HIVE-12758.patch
          207 kB
          Sergey Shelukhin

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: