mirror of https://github.com/apache/kafka.git
MINOR: Update comment in consumeAction (#14335)
Reviewers: Satish Duggana <satishd@apache.org>, Divij Vaidya <diviv@amazon.com>
This commit is contained in:
parent
33b385e3fa
commit
b7df99abec
|
|
@ -81,7 +81,7 @@ public final class ConsumeAction implements TieredStorageTestAction {
|
|||
context.consume(topicPartition, expectedTotalCount, fetchOffset);
|
||||
|
||||
// (A) Comparison of records consumed with records in the second-tier storage.
|
||||
// Reads all records physically found in the second-tier storage ∂for the given topic-partition.
|
||||
// Reads all records physically found in the second-tier storage for the given topic-partition.
|
||||
// The resulting sequence is sorted by records offset, as there is no guarantee on ordering from
|
||||
// the LocalTieredStorageSnapshot.
|
||||
List<Record> tieredStorageRecords = tieredStorageRecords(context, topicPartition);
|
||||
|
|
@ -92,8 +92,7 @@ public final class ConsumeAction implements TieredStorageTestAction {
|
|||
.findFirst();
|
||||
|
||||
if (!firstExpectedRecordOpt.isPresent()) {
|
||||
// If no records could be found in the second-tier storage or their offset are less
|
||||
// than the consumer fetch offset, no record would be consumed from that storage.
|
||||
// If no records could be found in the second-tier storage, no record would be consumed from that storage.
|
||||
if (expectedFromSecondTierCount > 0) {
|
||||
fail("Could not find any record with offset >= " + fetchOffset + " from tier storage.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue