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

high: report: Rewrite transition detection to fix missing transitions #91

Merged
merged 3 commits into from May 19, 2015

Conversation

krig
Copy link
Contributor

@krig krig commented Apr 26, 2015

@dmuhamedagic : I rewrote the transition detection so that it would use either of the transition start messages, since I noticed that some transitions only printed the old message (I think this is why we've been missing transitions).

One thing that's a concern is that a lot of transitions will be detected twice, and right now we keep the second, not the first Transition object created. I think we'd want to keep the first, most likely?

@dmuhamedagic
Copy link
Collaborator

On Sun, Apr 26, 2015 at 04:09:26PM -0700, Kristoffer Grönlund wrote:

@dmuhamedagic : I rewrote the transition detection so that it
would use either of the transition start messages, since I
noticed that some transitions only printed the old message (I
think this is why we've been missing transitions).

Excellent.

One thing that's a concern is that a lot of transitions will be
detected twice,

One and the same twice? Or is it due to the transition number
wrap?

and right now we keep the second, not the first
Transition object created. I think we'd want to keep the first,
most likely?

Hard to say. Depends on the answer above :)

@krig
Copy link
Contributor Author

krig commented May 4, 2015

Since it detects two different log lines as possibly starting a transition, if both forms appear in the log, two start messages will be detected for the same transition. The first transition will probably be earlier in the logs, so that's the one that should be kept.

@dmuhamedagic
Copy link
Collaborator

dmuhamedagic commented May 5, 2015 via email

@krig
Copy link
Contributor Author

krig commented May 6, 2015

Hmm I see.. the possibility of wrapping complicates things. If you have two transitions with the same number in a report, you would probably want to see both though, not just one of them. So maybe the transitions should be merged somehow..

@dmuhamedagic
Copy link
Collaborator

dmuhamedagic commented May 6, 2015 via email

@krig krig force-pushed the missing-transitions branch 3 times, most recently from 0fdd575 to 3d07467 Compare May 10, 2015 09:48
@dmuhamedagic
Copy link
Collaborator

Where do we stand with this one? Me lost track ;-)

@krig
Copy link
Contributor Author

krig commented May 18, 2015

I suspect that this isn't quite right yet, but I need to look at more reports.. though I think it is already an improvement over what is in master now. Maybe I should merge it and hopefully we can work out any issues afterwards. Sounds good?

@dmuhamedagic
Copy link
Collaborator

On Mon, May 18, 2015 at 10:37:08AM -0700, Kristoffer Grönlund wrote:

I suspect that this isn't quite right yet, but I need to look at more reports.. though I think it is already an improvement over what is in master now. Maybe I should merge it and hopefully we can work out any issues afterwards. Sounds good?

Yes, let's merge and then we'll test more.

krig added a commit that referenced this pull request May 19, 2015
high: report: Rewrite transition detection to fix missing transitions
@krig krig merged commit 2d4d61e into ClusterLabs:master May 19, 2015
@krig krig deleted the missing-transitions branch May 19, 2015 08:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants