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

Enforce TransactionBatch size=1 for blob stores

    XMLWordPrintableJSON

Details

    Description

      Streaming Ingest API supports a concept of TransactionBatch where N transactions can be opened at once and the data in all of them will be written to the same delta_x_y directory where each transaction in the batch can be committed/aborted independently.  The implementation relies on FSDataOutputStream.hflush() (called from OrcRecordUpdater}} which is available on HDFS but is often implemented as no-op in Blob store backed FileSystem objects.

      Need to add a check to HiveStreamingConnection() constructor to raise an error if builder.transactionBatchSize > 1 and the target table/partitions are backed by something that doesn't support hflush().

      Attachments

        1. HIVE-21146.patch
          4 kB
          David Lavati
        2. HIVE-21146.3.patch
          4 kB
          David Lavati
        3. HIVE-21146.2.patch
          4 kB
          David Lavati
        4. HIVE-21146.2.patch
          4 kB
          David Lavati
        5. HIVE-21146.2.patch
          4 kB
          David Lavati
        6. HIVE-21146.2.patch
          4 kB
          David Lavati

        Issue Links

          Activity

            People

              dlavati David Lavati
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              6 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