Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8996

PutHive*QL processors do not close JDBC statements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.4, 1.12.1, 1.14.0, 1.13.2
    • 1.15.0
    • None
    • None

    Description

      When multiple HiveQL statements arrive in a FlowFile, PutHive*QL processors create and execute the statements in a loop but do not close them. It may lead to data loss.

      Example scenario:

      • create a source table with 100 Mio records (single int column with random numbers)
      • create 10 target tables with the same structure
      • feed PutHive3QL with a single FF containing the following script:
      truncate table target0;
      insert into target0 select * from source;
      truncate table target1;
      insert into target1 select * from source;
      ...
      • result: some target tables are empty instead of having the 100 Mio records

      Attachments

        Issue Links

          Activity

            People

              turcsanyip Peter Turcsanyi
              turcsanyip Peter Turcsanyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m