[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-18 Thread Vineet Garg (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619464#comment-16619464
 ] 

Vineet Garg commented on HIVE-20561:


+1

> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.3.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-18 Thread slim bouguerra (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619235#comment-16619235
 ] 

slim bouguerra commented on HIVE-20561:
---

[~vgarg], as per the Jira Description, if the Kafka topic is Transactional, 
therefore we might have commit markers that adds gaps between actual record.
This can be illustrated as 
R1(offset=0) -> C1(offset=1)  ->R2(offset=2).
As you can see the offset of R1 does not indicate what is the next one in the 
stream.


> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.3.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-17 Thread Vineet Garg (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16618468#comment-16618468
 ] 

Vineet Garg commented on HIVE-20561:


[~bslim] According to Kafka doc 
[LINK|https://kafka.apache.org/10/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html]
 position returns the offset of the next record to be fetched, so how is it 
different from what we used to do previously?

> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.3.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-17 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16618411#comment-16618411
 ] 

Hive QA commented on HIVE-20561:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12940004/HIVE-20561.3.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 14969 tests passed

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/13871/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13871/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13871/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12940004 - PreCommit-HIVE-Build

> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.3.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-17 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16618380#comment-16618380
 ] 

Hive QA commented on HIVE-20561:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  8m 
19s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
16s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
10s{color} | {color:green} master passed {color} |
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m 
22s{color} | {color:blue} kafka-handler in master has 1 extant Findbugs 
warnings. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
11s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  0m 
16s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
14s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  0m 
14s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} checkstyle {color} | {color:red}  0m 
10s{color} | {color:red} kafka-handler: The patch generated 1 new + 2 unchanged 
- 0 fixed = 3 total (was 2) {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} findbugs {color} | {color:green}  0m 
31s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
10s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
13s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 11m 23s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-13871/dev-support/hive-personality.sh
 |
| git revision | master / a782330 |
| Default Java | 1.8.0_111 |
| findbugs | v3.0.0 |
| checkstyle | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13871/yetus/diff-checkstyle-kafka-handler.txt
 |
| modules | C: kafka-handler U: kafka-handler |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13871/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.3.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-17 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16617292#comment-16617292
 ] 

Hive QA commented on HIVE-20561:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12939921/HIVE-20561.2.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14966 tests 
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestMiniSparkOnYarnCliDriver.testCliDriver[spark_explainuser_1]
 (batchId=188)
{noformat}

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/13852/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13852/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13852/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12939921 - PreCommit-HIVE-Build

> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-17 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16617222#comment-16617222
 ] 

Hive QA commented on HIVE-20561:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  8m 
34s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
16s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
10s{color} | {color:green} master passed {color} |
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m 
23s{color} | {color:blue} kafka-handler in master has 1 extant Findbugs 
warnings. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
10s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  0m 
16s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
16s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  0m 
16s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} checkstyle {color} | {color:red}  0m 
10s{color} | {color:red} kafka-handler: The patch generated 5 new + 2 unchanged 
- 0 fixed = 7 total (was 2) {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} findbugs {color} | {color:green}  0m 
31s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
11s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
13s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 11m 37s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-13852/dev-support/hive-personality.sh
 |
| git revision | master / 7ee7a54 |
| Default Java | 1.8.0_111 |
| findbugs | v3.0.0 |
| checkstyle | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13852/yetus/diff-checkstyle-kafka-handler.txt
 |
| modules | C: kafka-handler U: kafka-handler |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13852/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.2.patch, HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-15 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16616385#comment-16616385
 ] 

Hive QA commented on HIVE-20561:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12939753/HIVE-20561.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14940 tests 
executed
*Failed tests:*
{noformat}
org.apache.hive.service.auth.TestCustomAuthentication.org.apache.hive.service.auth.TestCustomAuthentication
 (batchId=247)
{noformat}

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/13808/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/13808/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-13808/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12939753 - PreCommit-HIVE-Build

> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-20561) Use the position of the Kafka Consumer to track progress instead of Consumer Records offsets

2018-09-15 Thread Hive QA (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-20561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16616363#comment-16616363
 ] 

Hive QA commented on HIVE-20561:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  8m 
34s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
15s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}  0m 
 9s{color} | {color:green} master passed {color} |
| {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue}  0m 
23s{color} | {color:blue} kafka-handler in master has 1 extant Findbugs 
warnings. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
10s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  0m 
16s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  0m 
15s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  0m 
15s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} checkstyle {color} | {color:red}  0m  
9s{color} | {color:red} kafka-handler: The patch generated 5 new + 2 unchanged 
- 0 fixed = 7 total (was 2) {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 1s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} findbugs {color} | {color:green}  0m 
29s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  0m 
10s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
14s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 11m 29s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  javac  javadoc  findbugs  checkstyle  compile  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-13808/dev-support/hive-personality.sh
 |
| git revision | master / 08d9083 |
| Default Java | 1.8.0_111 |
| findbugs | v3.0.0 |
| checkstyle | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13808/yetus/diff-checkstyle-kafka-handler.txt
 |
| modules | C: kafka-handler U: kafka-handler |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-13808/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Use the position of the Kafka Consumer to track progress instead of Consumer 
> Records offsets
> 
>
> Key: HIVE-20561
> URL: https://issues.apache.org/jira/browse/HIVE-20561
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-20561.patch
>
>
> Kafka Partitions with transactional messages (post 0.11) will include commit 
> or abort markers which indicate the result of a transaction. The markers are 
> not returned to applications, yet have an offset in the log. Therefore the 
> end of Stream position can be the offset of a control message. 
> This Patch change the way how we keep track of the consumer position by using 
>  {code} consumer.position(topicP) {code} as oppose to using the offset of the 
> consumed messages.
> Also I have done some refactoring to help code readability  hopefully.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)