频繁的 grpc discovery.Discovery、callChaincode、QueryChaincodeDefinition 日志记录在 Hyperledger Fabric Peer 中

发布于 2025-01-09 09:22:55 字数 4444 浏览 0 评论 0原文

一个具有两个对等点和 3 个订购者的 hyperldger 结构网络,链码已安装在两个对等点中,一切正常,但我在对等点上看到以下日志,有人可以告诉发生了什么吗?

Peer-1 显示大量不断出现的频繁 discovery.Discovery 日志。

Peer-2 还显示大量 callChaincode、QueryChaincodeDefinition 日志,但没有 Txns 到来,链上代码没有被调用

Peer-1

2022-02-22 07:10:03.291 UTC 8272 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:18.29Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=369.752µs
2022-02-22 07:10:03.292 UTC 8273 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:18.29Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=1.846248ms
2022-02-22 07:10:08.296 UTC 8274 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:23.295Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=365.531µs
2022-02-22 07:10:08.296 UTC 8275 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:23.295Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=1.049292ms
2022-02-22 07:10:13.300 UTC 8276 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:28.299Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=534.941µs
2022-02-22 07:10:13.301 UTC 8277 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:28.299Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=656.879µs
2022-02-22 07:10:18.305 UTC 8278 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:33.304Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=295.207µs
2022-02-22 07:10:18.306 UTC 8279 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:33.304Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=691.75µs

Peer-2< /强>

2022-02-22 07:18:11.393 UTC a78c INFO [lifecycle] QueryChaincodeDefinition -> Successfully queried chaincode name 'sumitcc' with definition {sequence: 1, endorsement info: (version: '1.0', plugin: 'escc', init required: false), validation info: (plugin: 'vscc', policy: '12202f4368616e6e656c2f4170706c69636174696f6e2f456e646f7273656d656e74'), collections: ()},
2022-02-22 07:18:11.394 UTC a78d INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 4ms channel=sumit txID=b67a8f4a
2022-02-22 07:18:11.394 UTC a78e INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=5.094712ms
2022-02-22 07:18:11.407 UTC a78f INFO [endorser] callChaincode -> finished chaincode: lscc duration: 2ms channel=sumit txID=e6d3966f
2022-02-22 07:18:11.407 UTC a790 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=3.485798ms
2022-02-22 07:18:11.415 UTC a791 INFO [lifecycle] QueryChaincodeDefinition -> Successfully queried chaincode name 'sumitcc' with definition {sequence: 1, endorsement info: (version: '1.0', plugin: 'escc', init required: false), validation info: (plugin: 'vscc', policy: '12202f4368616e6e656c2f4170706c69636174696f6e2f456e646f7273656d656e74'), collections: ()},
2022-02-22 07:18:11.416 UTC a792 INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 3ms channel=sumit txID=b2da61c8
2022-02-22 07:18:11.416 UTC a793 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=4.619323ms

A hyperldger fabric network with two peers and 3 orderers, chain code got installed in both peers, everything works fine, but I see following logs on the peers, Is there anybody who can tell what going on?

Peer-1 shows a lot of frequent discovery.Discovery logs that keep coming.

Peer-2 showing also a lot of callChaincode, QueryChaincodeDefinition logs, but no Txns is coming, nothing got invoked on-chain code

Peer-1

2022-02-22 07:10:03.291 UTC 8272 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:18.29Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=369.752µs
2022-02-22 07:10:03.292 UTC 8273 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:18.29Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=1.846248ms
2022-02-22 07:10:08.296 UTC 8274 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:23.295Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=365.531µs
2022-02-22 07:10:08.296 UTC 8275 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:23.295Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=1.049292ms
2022-02-22 07:10:13.300 UTC 8276 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:28.299Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=534.941µs
2022-02-22 07:10:13.301 UTC 8277 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:28.299Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=656.879µs
2022-02-22 07:10:18.305 UTC 8278 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:33.304Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=295.207µs
2022-02-22 07:10:18.306 UTC 8279 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.request_deadline=2022-02-22T07:10:33.304Z grpc.peer_address=172.26.0.1:52930 grpc.code=OK grpc.call_duration=691.75µs

Peer-2

2022-02-22 07:18:11.393 UTC a78c INFO [lifecycle] QueryChaincodeDefinition -> Successfully queried chaincode name 'sumitcc' with definition {sequence: 1, endorsement info: (version: '1.0', plugin: 'escc', init required: false), validation info: (plugin: 'vscc', policy: '12202f4368616e6e656c2f4170706c69636174696f6e2f456e646f7273656d656e74'), collections: ()},
2022-02-22 07:18:11.394 UTC a78d INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 4ms channel=sumit txID=b67a8f4a
2022-02-22 07:18:11.394 UTC a78e INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=5.094712ms
2022-02-22 07:18:11.407 UTC a78f INFO [endorser] callChaincode -> finished chaincode: lscc duration: 2ms channel=sumit txID=e6d3966f
2022-02-22 07:18:11.407 UTC a790 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=3.485798ms
2022-02-22 07:18:11.415 UTC a791 INFO [lifecycle] QueryChaincodeDefinition -> Successfully queried chaincode name 'sumitcc' with definition {sequence: 1, endorsement info: (version: '1.0', plugin: 'escc', init required: false), validation info: (plugin: 'vscc', policy: '12202f4368616e6e656c2f4170706c69636174696f6e2f456e646f7273656d656e74'), collections: ()},
2022-02-22 07:18:11.416 UTC a792 INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 3ms channel=sumit txID=b2da61c8
2022-02-22 07:18:11.416 UTC a793 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.100.124.44:55586 grpc.peer_subject="CN=fabric-common" grpc.code=OK grpc.call_duration=4.619323ms

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丑丑阿 2025-01-16 09:22:55

不用担心。这只是同行保持 MSP 更新所需的后台工作。我相信一个是锚点,而另一个则试图以一定的时间间隔进行更新。你可以调整日志级别来调试,这对于学习 HLF 来说已经足够了。

No worries. It's just a background work needed by peers to keep their MSP updated. I believe one is anchor peer while the other one is trying to get updated with a time interval. You may tune the log level to debug tho, it is good enough for learning HLF.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文