You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "kamalcph (via GitHub)" <gi...@apache.org> on 2023/08/25 06:40:43 UTC
[GitHub] [kafka] kamalcph commented on pull request #14285: KAFKA-15399: Enable OffloadAndConsumeFromLeader test
kamalcph commented on PR #14285:
URL: https://github.com/apache/kafka/pull/14285#issuecomment-1692847581
### Test Report
```scala
[SUCCESS] (1) create topic: Topic[name=topicA partition-count=1 replication-factor=1 segment-size=1 assignment=null properties={remote.storage.enable=true, local.retention.bytes=1, index.interval.bytes=1, segment.index.bytes=12}]
[SUCCESS] (2) produce-records: topicA-0
ProducerRecord(topic=topicA, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k1, value=v1, timestamp=null)
ProducerRecord(topic=topicA, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k2, value=v2, timestamp=null)
ProducerRecord(topic=topicA, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k3, value=v3, timestamp=null)
Segment[partition=topicA-0 offloaded-by-broker-id=0 base-offset=0 record-count=1]
Segment[partition=topicA-0 offloaded-by-broker-id=0 base-offset=1 record-count=1]
[SUCCESS] (3) create topic: Topic[name=topicB partition-count=1 replication-factor=1 segment-size=2 assignment=null properties={remote.storage.enable=true, local.retention.bytes=1, index.interval.bytes=1, segment.index.bytes=24}]
[SUCCESS] (4) produce-records: topicB-0
ProducerRecord(topic=topicB, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k1, value=v1, timestamp=null)
ProducerRecord(topic=topicB, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k2, value=v2, timestamp=null)
ProducerRecord(topic=topicB, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k3, value=v3, timestamp=null)
ProducerRecord(topic=topicB, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k4, value=v4, timestamp=null)
ProducerRecord(topic=topicB, partition=0, headers=RecordHeaders(headers = [], isReadOnly = true), key=k5, value=v5, timestamp=null)
Segment[partition=topicB-0 offloaded-by-broker-id=0 base-offset=0 record-count=2]
Segment[partition=topicB-0 offloaded-by-broker-id=0 base-offset=2 record-count=2]
[SUCCESS] (5) consume-action:
topic-partition = topicA-0
fetch-offset = 1
expected-record-count = 2
expected-record-from-tiered-storage = 1
[SUCCESS] (6) consume-action:
topic-partition = topicB-0
fetch-offset = 1
expected-record-count = 4
expected-record-from-tiered-storage = 3
Content of local tiered storage:
Broker IDFile | Offsets | Records
----------------------------------------------------------------------------------------
topicA-0 | |
00000000000000000000-z5vzX2egQSWFoceLXBFIpw.log | 0 | (k1, v1)
| |
00000000000000000001-f33sDWOvTCWlMkiwxlbo4Q.log | 1 | (k2, v2)
| |
topicB-0 | |
00000000000000000000-iCzBGsRPRuuGfYY3XqCNgg.log | 0 | (k1, v1)
| 1 | (k2, v2)
| |
00000000000000000002-MQelU_s8SvO2mC_BcFqDBg.log | 2 | (k3, v3)
| 3 | (k4, v4)
| |
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org