Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

OpenReplicator repeat connect binlog and shutsown

未关闭
#130 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java, mysql
领域
databases

调研方向

从 issue 中显示的 OpenReplicator 连接和 shutdown 序列开始,重点关注为什么第一次连接之后会发生 shutdown 和重复连接。使用已记录的 MySQL binlog 端点复现该行为,并比较生命周期日志;完成的标志是 relay 保持运行,而不是意外 shutdown。

由索引模型根据 Issue 内容生成。

描述

2020-05-27 10:36:17,414 +1222 [main] (INFO) {DatabusRelayMain} done initializing producers
2020-05-27 10:36:17,440 +1248 [main] (INFO) {ServerContainer} Saving port number in /opt/databus/relay/./containerPortNum_1944197119
2020-05-27 10:36:17,440 +1248 [main] (INFO) {ServerContainer} Serving container 1944197119 HTTP listener on port 11115
2020-05-27 10:36:17,440 +1248 [main] (INFO) {DatabusRelayMain} Starting. Producers are :{{"id":1,"name":"ruaho"}=com.linkedin.databus2.producers.OpenReplicatorEventProducer@4f83df68}
2020-05-27 10:36:17,441 +1249 [main] (INFO) {DatabusRelayMain} starting db puller: ruaho
2020-05-27 10:36:17,444 +1252 [main] (INFO) {DatabusRelayMain} db puller started: ruaho
2020-05-27 10:36:17,444 +1252 [main] (INFO) {ServerContainer} Databus service started!
2020-05-27 10:36:17,444 +1252 [main] (INFO) {ServerContainer} waiting for shutdown request for container id: 1944197119
2020-05-27 10:36:17,461 +1269 [OpenReplicator_ruaho] (INFO) {OpenReplicator_ruaho} Connecting to OpenReplicator [email protected]:3306/mysql-bin.000001#4
2020-05-27 10:36:20,710 +4518 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown requested
2020-05-27 10:36:20,710 +4518 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Waiting for shutdown uninteruptibly
2020-05-27 10:36:20,710 +4518 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Waiting for shutdown
2020-05-27 10:36:20,807 +4615 [ORListener_ruaho] (INFO) {OpenReplicator_ruaho} ORListener Thread done
2020-05-27 10:36:20,808 +4616 [ORListener_ruaho] (INFO) {ORListener_ruaho} Signalling shutdown !!
2020-05-27 10:36:20,808 +4616 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown: true
2020-05-27 10:36:20,808 +4616 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown: true
2020-05-27 10:36:20,808 +4616 [OpenReplicator_ruaho] (INFO) {transactionWriter} Shutdown requested
2020-05-27 10:36:20,808 +4616 [OpenReplicator_ruaho] (INFO) {transactionWriter} Waiting for shutdown uninteruptibly
2020-05-27 10:36:20,808 +4616 [OpenReplicator_ruaho] (INFO) {transactionWriter} Waiting for shutdown
2020-05-27 10:36:20,866 +4674 [transactionWriter] (INFO) {TransactionWriter} transactionWriter thread done!
2020-05-27 10:36:20,866 +4674 [transactionWriter] (INFO) {transactionWriter} Signalling shutdown !!
2020-05-27 10:36:20,866 +4674 [OpenReplicator_ruaho] (INFO) {transactionWriter} Shutdown: true
2020-05-27 10:36:20,866 +4674 [OpenReplicator_ruaho] (INFO) {transactionWriter} Shutdown: true
2020-05-27 10:36:20,867 +4675 [OpenReplicator_ruaho] (INFO) {OpenReplicator_ruaho} Connecting to OpenReplicator [email protected]:3306/mysql-bin.000001#4
2020-05-27 10:36:20,919 +4727 [OpenReplicator_ruaho] (INFO) {OpenReplicator_ruaho} start Open Replicator successfully
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown requested
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Waiting for shutdown uninteruptibly
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Waiting for shutdown
2020-05-27 10:36:22,721 +6529 [ORListener_ruaho] (INFO) {OpenReplicator_ruaho} ORListener Thread done
2020-05-27 10:36:22,721 +6529 [ORListener_ruaho] (INFO) {ORListener_ruaho} Signalling shutdown !!
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown: true
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {ORListener_ruaho} Shutdown: true
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {transactionWriter} Shutdown requested
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {transactionWriter} Waiting for shutdown uninteruptibly
2020-05-27 10:36:22,721 +6529 [OpenReplicator_ruaho] (INFO) {transactionWriter} Waiting for shutdown

主要语言
Java
星标
3.7k
派生
735
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

linkedin/databus 的其他 Issue

查看 linkedin/databus 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。