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

ORC MemoryManager thread checks are fatal, should WARN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.1.0
    • ORC

    Description

      The MemoryManager is tied to a WriterOptions on create, which can occur in a different thread from the writer calls.

      This is unexpected, but safe and needs a warning not a fatal.

        /**
         * Light weight thread-safety check for multi-threaded access patterns
         */
        private void checkOwner() {
          Preconditions.checkArgument(ownerLock.isHeldByCurrentThread(),
              "Owner thread expected %s, got %s",
              ownerLock.getOwner(),
              Thread.currentThread());
        }
      

      Attachments

        1. HIVE-13163.1.patch
          0.8 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: