Skip to content

osd: fix some osd beacon bugs - #14274

Merged
tchaikov merged 2 commits into
ceph:masterfrom
liewegas:wip-osd-beacon-fix
Apr 3, 2017
Merged

tchaikov merged 2 commits into
ceph:masterfrom
liewegas:wip-osd-beacon-fix

Conversation

@liewegas

Copy link
Copy Markdown
Member

No description provided.

- && should have been ||
- change this to instead not send when monmap epoch==0,
  and only set last_sent_beacon if we actually send.  That
  way we'll send on the next tick after we get a real monmap.

Signed-off-by: Sage Weil <[email protected]>
Otherwise the mon will just ignore it and we'll wait another
cycle.

Signed-off-by: Sage Weil <[email protected]>

@gregsfortytwo gregsfortytwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed-by: Greg Farnum [email protected]

@dmick

dmick commented Mar 31, 2017

Copy link
Copy Markdown
Member

Is there an ||-to-&& change somewhere here I'm not seeing?

@gregsfortytwo

Copy link
Copy Markdown
Member

"change this to instead not send when monmap epoch==0"
(emphasis mine)

@liewegas

liewegas commented Apr 1, 2017 via email

Copy link
Copy Markdown
Member Author

Comment thread src/osd/OSD.cc
// send beacon to mon even if we are just connected, and the monmap is not
// initialized yet by then.
if (monmap.epoch == 0 &&
if (monmap.epoch > 0 &&

@tchaikov tchaikov Apr 1, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

right, || is what was intended. maybe we can remove the comment above, which will be confusing then.

@tchaikov
tchaikov merged commit d79d85b into ceph:master Apr 3, 2017
@liewegas
liewegas deleted the wip-osd-beacon-fix branch April 3, 2017 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants