[jira] [Commented] (KAFKA-10636) Bypass log validation for writes to raft log

2020-12-13 Thread feyman (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-10636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248766#comment-17248766
 ] 

feyman commented on KAFKA-10636:


[~hachikuji] I created a PR for this, request for review, thanks!

> Bypass log validation for writes to raft log
> 
>
> Key: KAFKA-10636
> URL: https://issues.apache.org/jira/browse/KAFKA-10636
> Project: Kafka
>  Issue Type: Sub-task
>Reporter: Jason Gustafson
>Assignee: feyman
>Priority: Major
>  Labels: raft-log-management
>
> The raft leader is responsible for creating the records written to the log 
> (including assigning offsets and the epoch), so we can consider bypassing the 
> validation done in `LogValidator`. This lets us skip potentially expensive 
> decompression and the unnecessary recomputation of the CRC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-10636) Bypass log validation for writes to raft log

2020-12-03 Thread feyman (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-10636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243646#comment-17243646
 ] 

feyman commented on KAFKA-10636:


[~hachikuji]  Cool, thanks for the help!

> Bypass log validation for writes to raft log
> 
>
> Key: KAFKA-10636
> URL: https://issues.apache.org/jira/browse/KAFKA-10636
> Project: Kafka
>  Issue Type: Sub-task
>Reporter: Jason Gustafson
>Assignee: feyman
>Priority: Major
>  Labels: raft-log-management
>
> The raft leader is responsible for creating the records written to the log 
> (including assigning offsets and the epoch), so we can consider bypassing the 
> validation done in `LogValidator`. This lets us skip potentially expensive 
> decompression and the unnecessary recomputation of the CRC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-10636) Bypass log validation for writes to raft log

2020-12-03 Thread Jason Gustafson (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-10636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243525#comment-17243525
 ] 

Jason Gustafson commented on KAFKA-10636:
-

[~feyman] Sounds good, thanks for picking it up. It might just be a matter of 
taking advantage of the `AppendOrigin` which we added to `Log.appendAsLeader`.

> Bypass log validation for writes to raft log
> 
>
> Key: KAFKA-10636
> URL: https://issues.apache.org/jira/browse/KAFKA-10636
> Project: Kafka
>  Issue Type: Sub-task
>Reporter: Jason Gustafson
>Assignee: feyman
>Priority: Major
>
> The raft leader is responsible for creating the records written to the log 
> (including assigning offsets and the epoch), so we can consider bypassing the 
> validation done in `LogValidator`. This lets us skip potentially expensive 
> decompression and the unnecessary recomputation of the CRC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-10636) Bypass log validation for writes to raft log

2020-12-01 Thread feyman (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-10636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242122#comment-17242122
 ] 

feyman commented on KAFKA-10636:


Hi, [~hachikuji] . I would like to take this task, please let me know if this 
one is still under discussion or have some pending dependencies. I had roughly 
went through the design and implementation of kafka-raft recently, will add my 
understanding of this task later to make sure we are on the same page, thanks!

> Bypass log validation for writes to raft log
> 
>
> Key: KAFKA-10636
> URL: https://issues.apache.org/jira/browse/KAFKA-10636
> Project: Kafka
>  Issue Type: Sub-task
>Reporter: Jason Gustafson
>Assignee: feyman
>Priority: Major
>
> The raft leader is responsible for creating the records written to the log 
> (including assigning offsets and the epoch), so we can consider bypassing the 
> validation done in `LogValidator`. This lets us skip potentially expensive 
> decompression and the unnecessary recomputation of the CRC.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)