[
https://issues.apache.org/jira/browse/HIVE-21671?focusedWorklogId=238376&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-238376
]
ASF GitHub Bot logged work on HIVE-21671:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 07/May/19 11:31
Start Date: 07/May/19 11:31
Worklog Time Spent: 10m
Work Description: maheshk114 commented on pull request #615: HIVE-21671:
Replicate Streaming ingestion with transactional batch size as 1.
URL: https://github.com/apache/hive/pull/615#discussion_r281504170
##########
File path: streaming/src/java/org/apache/hive/streaming/TransactionBatch.java
##########
@@ -285,6 +285,18 @@ private void commitImpl(Set<String> partitions, String
key, String value)
DataOperationType.INSERT);
}
}
+
+ // If it is the last transaction in the batch, then close the files and
add write events.
+ // We need to close the writer as file checksum can't be obtained on the
opened file.
+ if (currentTxnIndex + 1 >= txnToWriteIds.size()) {
+ // TODO: Replication doesn't work if txn batch size > 1 and the last
txn is aborted as write events
+ // are ignored by abort txn event.
+ recordWriter.close();
+
+ // Add write notification events if it is enabled.
+ conn.addWriteNotificationEvents();
Review comment:
write notification logs should be written before commit txn event
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 238376)
Time Spent: 0.5h (was: 20m)
> Replicate Streaming ingestion with transactional batch size as 1.
> -----------------------------------------------------------------
>
> Key: HIVE-21671
> URL: https://issues.apache.org/jira/browse/HIVE-21671
> Project: Hive
> Issue Type: Sub-task
> Components: repl, Streaming, Transactions
> Affects Versions: 4.0.0
> Reporter: Sankar Hariappan
> Assignee: Sankar Hariappan
> Priority: Major
> Labels: DR, pull-request-available, replication
> Attachments: HIVE-21671.01.patch
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Replication streaming ingest HiveStreamingConnection on ACID tables with
> transaction batch size as 1.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)