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

ASF GitHub Bot commented on KAFKA-3997:
---------------------------------------

GitHub user resetius opened a pull request:

    https://github.com/apache/kafka/pull/1724

    [KAFKA-3997] log partition name on truncation

    

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

    $ git pull https://github.com/resetius/kafka KAFKA-3997

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

    https://github.com/apache/kafka/pull/1724.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 #1724
    
----
commit b7bfa06acb6a7d312d0a097eaf0c18969de0b18e
Author: Alexey Ozeritsky <aozerit...@yandex-team.ru>
Date:   2016-08-12T15:41:49Z

    [KAFKA-3997] log partition name on truncation

----


> Halting because log truncation is not allowed and suspicious logging
> --------------------------------------------------------------------
>
>                 Key: KAFKA-3997
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3997
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.9.0.0, 0.9.0.1, 0.10.0.0
>            Reporter: Alexey Ozeritskiy
>         Attachments: KAFKA-3997.patch
>
>
> When follower wants to truncate partition and it is not allowed it prints the 
> following message:
> {noformat}
> [2016-07-27 14:07:37,617] FATAL [ReplicaFetcherThread-0-19], Halting because 
> log truncation is not allowed for topic rt3.fol--yabs-rt--bs-hit-log, Current 
> leader 19's latest offset 50260815 is less
>  than replica 2's latest offset 50260816 (kafka.server.ReplicaFetcherThread)
> {noformat}
> It is difficult to understand which partition is it.
> I suggest to log here partition instead of topic. For example:
> {noformat}
> [2016-07-27 14:07:37,617] FATAL [ReplicaFetcherThread-0-19], Halting because 
> log truncation is not allowed for partition [rt3.fol--yabs-rt--bs-hit-log,0], 
> Current leader 19's latest offset 50260815 is less
>  than replica 2's latest offset 50260816 (kafka.server.ReplicaFetcherThread)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to