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

StatsNoJobTask doesn't close RecordReader, FSDataInputStream of which keeps open to prevent stale data clean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • None
    • None
    • Windows

    Description

      run the test

      mvn -Phadoop-2  test -Dtest=TestCliDriver -Dqfile=alter_merge_stats_orc.q
      

      to reproduce it. Simply, this query does three data loads which generates three base orc files.
      ANALYZE TABLE...COMPUTE STATISTICS NOSCAN will execute StatsNoJobTask to get stats, where file handle is held so as not able to clean base file. As a result, after running ALTER TABLE..CONCATENATE, follow-up queries go to stale base file and merged file.

      Attachments

        1. HIVE-8497.1.patch
          1 kB
          Xiaobing Zhou
        2. HIVE-8497.2.patch
          1 kB
          Xiaobing Zhou

        Issue Links

          Activity

            People

              xiaobingo Xiaobing Zhou
              xiaobingo Xiaobing Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: