You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by beltran <gi...@git.apache.org> on 2018/08/01 23:53:44 UTC

[GitHub] hive pull request #406: HIVE-20291: Allow HiveStreamingConnection to receive...

GitHub user beltran opened a pull request:

    https://github.com/apache/hive/pull/406

    HIVE-20291: Allow HiveStreamingConnection to receive a WriteId

    This PR does the following:
    * Extract some classes from HiveStreamingConnection and put them in the transaction package (`TransactionBatch`, `TxnState`). This was done because I was planning to add `UnManagedSingleTransaction` and it was going to result in a too big class
    * Create `UnManagedSingleTransaction`, and make it inherit from `AbstractStreamingTransaction`, make `TransactionBatch` inherit from it as well.
    * Allow `AbstractRecordWriter` to receive a `StatementIdChooser`. The implementation of `StatementIdChooser` can be tricky because it needs to try to provide a unique statement id but it can retry if this id is not unique. This may happen in several nodes at the same time. At the moment a naive implementation has been done.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/beltran/hive HIVE-20291

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/406.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #406
    
----
commit 4cc9a182c0aa0e53096d25a1975038fa4a00c02d
Author: Jaume Marhuenda <ja...@...>
Date:   2018-07-30T21:57:29Z

    HIVE-20291: Allow HiveStreamingConnection to receive a WriteId

----


---