-
Notifications
You must be signed in to change notification settings - Fork 616
Fireperf: fix incorrect sessionId
s for _fs
and _bs
traces
#3122
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
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
_fs
and _bs
tracessessionId
s for _fs
and _bs
traces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding the bug and creating a fix! The changes look good to me.
Can you add some tests to make sure the session IDs are correctly generated?
/test smoke-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for identifying and fixing this!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change.
sendSessionLog(Constants.TraceNames.FOREGROUND_TRACE_NAME.toString(), resumeTime, stopTime); | ||
// order is important to avoid b/204362742 | ||
updateAppState(ApplicationProcessState.BACKGROUND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also qualify the reasoning for this ordering? For example: Complete _fs trace before triggering a change in the application state as that would lead to a new sessionID change.
b/204362742
TLDR
_fs
and_bs
traces are using the next sessionId instead of the current sessionId because we callupdateAppState
(line 176) before sending_fs
or_bs
traces (line 177). One of the callbacks ofupdateAppState
isSessionManager
which updates the sessionId, thus_fs
and_bs
uses the next session's sessionId.This fix simply changes the order of methods, delaying
updateAppState
until session trace is sent.