[jira] [Updated] (KAFKA-7487) DumpLogSegments reports mismatches for indexed offsets which are not at the start of a record batch

2019-02-18 Thread Ismael Juma (JIRA)


 [ 
https://issues.apache.org/jira/browse/KAFKA-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismael Juma updated KAFKA-7487:
---
Fix Version/s: 2.3.0

> DumpLogSegments reports mismatches for indexed offsets which are not at the 
> start of a record batch
> ---
>
> Key: KAFKA-7487
> URL: https://issues.apache.org/jira/browse/KAFKA-7487
> Project: Kafka
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 2.0.0
>Reporter: Michael Bingham
>Assignee: Ismael Juma
>Priority: Minor
>  Labels: newbie
> Fix For: 2.3.0
>
>
> When running {{DumpLogSegments}} against an {{.index file}}, mismatches may 
> be reported when the indexed message offset is not the first record in a 
> batch. For example:
> {code}
>  Mismatches in 
> :/var/lib/kafka/data/replicated-topic-0/.index
>  Index offset: 968, log offset: 966
> {code}
> And looking at the corresponding {{.log}} file:
> {code}
> baseOffset: 966 lastOffset: 968 count: 3 baseSequence: -1 lastSequence: -1 
> producerId: -1 producerEpoch: -1 partitionLeaderEpoch: 0 isTransactional: 
> false position: 3952771 CreateTime: 1538768639065 isvalid: true size: 12166 
> magic: 2 compresscodec: NONE crc: 294402254 
> {code}
> In this case, the last offset in the batch was indexed instead of the first, 
> but the index has to map physical position to the start of the batch, leading 
> to the mismatch.
> It seems like {{DumpLogSegments}} should not report these cases as 
> mismatches, which users might interpret as an error or problem



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


[jira] [Updated] (KAFKA-7487) DumpLogSegments reports mismatches for indexed offsets which are not at the start of a record batch

2019-02-17 Thread Matthias J. Sax (JIRA)


 [ 
https://issues.apache.org/jira/browse/KAFKA-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias J. Sax updated KAFKA-7487:
---
Fix Version/s: (was: 2.2.0)

> DumpLogSegments reports mismatches for indexed offsets which are not at the 
> start of a record batch
> ---
>
> Key: KAFKA-7487
> URL: https://issues.apache.org/jira/browse/KAFKA-7487
> Project: Kafka
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 2.0.0
>Reporter: Michael Bingham
>Assignee: Ismael Juma
>Priority: Minor
>  Labels: newbie
>
> When running {{DumpLogSegments}} against an {{.index file}}, mismatches may 
> be reported when the indexed message offset is not the first record in a 
> batch. For example:
> {code}
>  Mismatches in 
> :/var/lib/kafka/data/replicated-topic-0/.index
>  Index offset: 968, log offset: 966
> {code}
> And looking at the corresponding {{.log}} file:
> {code}
> baseOffset: 966 lastOffset: 968 count: 3 baseSequence: -1 lastSequence: -1 
> producerId: -1 producerEpoch: -1 partitionLeaderEpoch: 0 isTransactional: 
> false position: 3952771 CreateTime: 1538768639065 isvalid: true size: 12166 
> magic: 2 compresscodec: NONE crc: 294402254 
> {code}
> In this case, the last offset in the batch was indexed instead of the first, 
> but the index has to map physical position to the start of the batch, leading 
> to the mismatch.
> It seems like {{DumpLogSegments}} should not report these cases as 
> mismatches, which users might interpret as an error or problem



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


[jira] [Updated] (KAFKA-7487) DumpLogSegments reports mismatches for indexed offsets which are not at the start of a record batch

2018-10-07 Thread Ismael Juma (JIRA)


 [ 
https://issues.apache.org/jira/browse/KAFKA-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismael Juma updated KAFKA-7487:
---
Fix Version/s: 2.2.0

> DumpLogSegments reports mismatches for indexed offsets which are not at the 
> start of a record batch
> ---
>
> Key: KAFKA-7487
> URL: https://issues.apache.org/jira/browse/KAFKA-7487
> Project: Kafka
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 2.0.0
>Reporter: Michael Bingham
>Assignee: Ismael Juma
>Priority: Minor
>  Labels: newbie
> Fix For: 2.2.0
>
>
> When running {{DumpLogSegments}} against an {{.index file}}, mismatches may 
> be reported when the indexed message offset is not the first record in a 
> batch. For example:
> {code}
>  Mismatches in 
> :/var/lib/kafka/data/replicated-topic-0/.index
>  Index offset: 968, log offset: 966
> {code}
> And looking at the corresponding {{.log}} file:
> {code}
> baseOffset: 966 lastOffset: 968 count: 3 baseSequence: -1 lastSequence: -1 
> producerId: -1 producerEpoch: -1 partitionLeaderEpoch: 0 isTransactional: 
> false position: 3952771 CreateTime: 1538768639065 isvalid: true size: 12166 
> magic: 2 compresscodec: NONE crc: 294402254 
> {code}
> In this case, the last offset in the batch was indexed instead of the first, 
> but the index has to map physical position to the start of the batch, leading 
> to the mismatch.
> It seems like {{DumpLogSegments}} should not report these cases as 
> mismatches, which users might interpret as an error or problem



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


[jira] [Updated] (KAFKA-7487) DumpLogSegments reports mismatches for indexed offsets which are not at the start of a record batch

2018-10-05 Thread Jason Gustafson (JIRA)


 [ 
https://issues.apache.org/jira/browse/KAFKA-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Gustafson updated KAFKA-7487:
---
Labels: newbie  (was: )

> DumpLogSegments reports mismatches for indexed offsets which are not at the 
> start of a record batch
> ---
>
> Key: KAFKA-7487
> URL: https://issues.apache.org/jira/browse/KAFKA-7487
> Project: Kafka
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 2.0.0
>Reporter: Michael Bingham
>Priority: Minor
>  Labels: newbie
>
> When running {{DumpLogSegments}} against an {{.index file}}, mismatches may 
> be reported when the indexed message offset is not the first record in a 
> batch. For example:
> {code}
>  Mismatches in 
> :/var/lib/kafka/data/replicated-topic-0/.index
>  Index offset: 968, log offset: 966
> {code}
> And looking at the corresponding {{.log}} file:
> {code}
> baseOffset: 966 lastOffset: 968 count: 3 baseSequence: -1 lastSequence: -1 
> producerId: -1 producerEpoch: -1 partitionLeaderEpoch: 0 isTransactional: 
> false position: 3952771 CreateTime: 1538768639065 isvalid: true size: 12166 
> magic: 2 compresscodec: NONE crc: 294402254 
> {code}
> In this case, the last offset in the batch was indexed instead of the first, 
> but the index has to map physical position to the start of the batch, leading 
> to the mismatch.
> It seems like {{DumpLogSegments}} should not report these cases as 
> mismatches, which users might interpret as an error or problem



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