Skip to content
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

[fetch] replicator_nodeのログ出力が多すぎてデバッグがしづらい #234

Closed
708yamaguchi opened this issue May 23, 2022 · 4 comments

Comments

@708yamaguchi
Copy link
Collaborator

fetchを使っていると、以下のようなエラーを大量に吐かれることがあって、デバッグがしづらいです。

[ERROR] [1653231340.987602] [/replicator_node:rosout]: [mongorestore] - E11000 duplicate key error collection: jsk_robot_lifelog.fetch1075 index: _id_ dup key: { : ObjectId('6243af9651998d10f0c7787c') }

エラーを吐いているのは以下の部分だと思うのですが、エラーは直るものでしょうか?
もし直らないなら、エラーの頻度を下げる、logger levelを上げる、ログファイルを分ける、などの対策が考えられるのですが、どうしましょうか。
https://github.com/strands-project/mongodb_store/blob/00efed6ac81dc3909819d76073d424d18567ecae/mongodb_store/scripts/replicator_node.py#L128-L129

cc @knorth55 @mqcmd196 @tkmtnt7000

@708yamaguchi
Copy link
Collaborator Author

大日方くん、お手伝いありがとうございました。

@knorth55
Copy link
Owner

throttleのすればいいと思います
で根本的な解決としてはそこではないよね、って話です

@708yamaguchi
Copy link
Collaborator Author

throttleのすればいいと思います
で根本的な解決としてはそこではないよね、って話です

はい、僕もそうだと考えています。
まずは対症療法としてthrottleを追加したプルリクエストを出します。
根本解決のため、引き続きデバッグをしたいと思います

@708yamaguchi
Copy link
Collaborator Author

一旦#237 で様子を見ます

不具合があればまたプルリクエストを出します

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants