Skip to content

修正错别字 #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/interview/kafka-40.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Consumer Group与Consumer的关系是动态维护的,当一个Consumer进程

## 18、Consumer 如何消费指定分区消息

Cosumer 消费消息时,想Broker 发出 `fetch` 请求去消费特定分区的消息,Consumer 可以通过指定消息在日志中的偏移量 offset,就可以从这个位置开始消息消息,Consumer 拥有了 offset 的控制权,也可以向后回滚去重新消费之前的消息。
Cosumer 消费消息时,向Broker 发出 `fetch` 请求去消费特定分区的消息,Consumer 可以通过指定消息在日志中的偏移量 offset,就可以从这个位置开始消费消息,Consumer 拥有了 offset 的控制权,也可以向后回滚去重新消费之前的消息。

也可以使用 `seek(Long topicPartition)` 来指定消费的位置。

Expand Down Expand Up @@ -401,4 +401,4 @@ GitHub 上标星 10000+ 的开源知识库《[二哥的 Java 进阶之路](https
微信搜 **沉默王二** 或扫描下方二维码关注二哥的原创公众号沉默王二,回复 **222** 即可免费领取。


![](https://cdn.tobebetterjavaer.com/tobebetterjavaer/images/gongzhonghao.png)
![](https://cdn.tobebetterjavaer.com/tobebetterjavaer/images/gongzhonghao.png)