This is an automated email from the ASF dual-hosted git repository.

mjsax pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new dc0f0db8642 MINOR: fix typo (#14542)
dc0f0db8642 is described below

commit dc0f0db86428ef59ac72a232b6b390aa000097c4
Author: Matthias J. Sax <[email protected]>
AuthorDate: Fri Oct 13 09:28:00 2023 -0700

    MINOR: fix typo (#14542)
    
    Reviewers: Bruno Cadonna <[email protected]>
---
 .../java/org/apache/kafka/storage/internals/log/AbstractIndex.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java
 
b/storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java
index b53acce663d..21644130f09 100644
--- 
a/storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java
+++ 
b/storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java
@@ -341,8 +341,8 @@ public abstract class AbstractIndex implements Closeable {
      * algorithm will read index entries in page #0, 6, 9, 11, and 12.
      * page number: |0|1|2|3|4|5|6|7|8|9|10|11|12 |
      * steps:       |1| | | | | |3| | |4|  |5 |2/6|
-     * In each page, there are hundreds log entries, corresponding to hundreds 
to thousands of kafka messages. When the
-     * index gradually growing from the 1st entry in page #12 to the last 
entry in page #12, all the write (append)
+     * In each page, there are hundreds of log entries, corresponding to 
hundreds to thousands of kafka messages. When the
+     * index gradually grows from the 1st entry in page #12 to the last entry 
in page #12, all the write (append)
      * operations are in page #12, and all the in-sync follower / consumer 
lookups read page #0,6,9,11,12. As these pages
      * are always used in each in-sync lookup, we can assume these pages are 
fairly recently used, and are very likely to be
      * in the page cache. When the index grows to page #13, the pages needed 
in a in-sync lookup change to #0, 7, 10, 12,

Reply via email to