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

osd: enhance logging for osd network error #12458

Merged
merged 1 commit into from Dec 17, 2016

Conversation

liuchang0812
Copy link
Contributor

Signed-off-by: liuchang0812 liuchang0812@gmail.com

@liuchang0812
Copy link
Contributor Author

@tchaikov please take a look, It's useful when I do some network crash test to osd.

@@ -7134,21 +7134,21 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
if (r != 0) {
do_shutdown = true; // FIXME: do_restart?
network_error = true;
dout(0) << __func__ << " marked down: rebind failed" << dendl;
dout(0) << __func__ << " marked down: rebind cluster_messager failed" << dendl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to wrap line at 80 chars.

@tchaikov tchaikov self-assigned this Dec 13, 2016
@tchaikov
Copy link
Contributor

lgtm, just need to wrap the line.

@liuchang0812 liuchang0812 force-pushed the add-more-log-for-network-error branch 2 times, most recently from 8a2604a to e5233fa Compare December 13, 2016 09:38
@liuchang0812
Copy link
Contributor Author

@tchaikov it's done. thanks for your suggestion

@@ -7134,21 +7134,24 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
if (r != 0) {
do_shutdown = true; // FIXME: do_restart?
network_error = true;
dout(0) << __func__ << " marked down: rebind failed" << dendl;
dout(0) << __func__
<< " marked down: rebind cluster_messager failed" << dendl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a typo, should be cluster_messenger

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, my bad. I have fixed this typo.

@liuchang0812
Copy link
Contributor Author

@tchaikov @hjwsm1989 it's done.

@liuchang0812
Copy link
Contributor Author

@tchaikov hi, tchaikov, need your approval 😺

@xiexingguo
Copy link
Member

retest this please

@xiexingguo
Copy link
Member

On behalf of @tchaikov (since he is on vacation).

@liuchang0812
Copy link
Contributor Author

@xiexingguo thanks 👍

@@ -7134,21 +7134,24 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m)
if (r != 0) {
do_shutdown = true; // FIXME: do_restart?
network_error = true;
dout(0) << __func__ << " marked down: rebind failed" << dendl;
dout(0) << __func__
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks better if you do all the changes the same way and seems the preferred option is to be << aligned here:



dout(0) << __func__ << " marked down:"
        << " marked down: rebind cluster_messenger failed" << dendl;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's better. I have updated this code. thanks 😄

@liuchang0812 liuchang0812 force-pushed the add-more-log-for-network-error branch 2 times, most recently from b96dcb5 to 6656892 Compare December 17, 2016 04:06
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
@xiexingguo xiexingguo dismissed tchaikov’s stale review December 17, 2016 04:52

Issue has been addressed.

@xiexingguo xiexingguo changed the title ods: enhance logging for osd network error osd: enhance logging for osd network error Dec 17, 2016
@xiexingguo xiexingguo merged commit a30d90c into ceph:master Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants