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

Compaction Initiator ignores datas inserted by Stream Data Ingest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • API, Transactions
    • None

    Description

      HI,

      Before compaction, Initiator decides whether a table/partition is potentialCompaction by querying COMPLETE_TXN_COMPONENT.
      But I found the transactions which committed by Stream Data Ingest is not stored on COMPLETE_TXN_COMPONENT. This is because the statement "insert into COMPLETED_TXN_COMPONENTS (ctc_txnid, ctc_database, ctc_table, ctc_partition, ctc_writeid, ctc_update_delete) select tc_txnid, tc_database, tc_table, tc_partition, tc_writeid, 'N' from TXN_COMPONENTS where tc_txnid = (id)"  fails.
      I found INSERT statement to TXN_COMPONENTS isn't fired. select subquery above returns 0 row.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kei_miyauchi Kei Miyauchi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: