Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(server): Validate session timestamps #633

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jun 24, 2020

Adds clock drift correction and validates session timestamps. Previously, only the started timestamp was validated.

The maximum session age was previously hardcoded and can now be configured via processing settings. As part of this, the validation code has moved into the EventProcessor, where all other normalization code is executed.

@jan-auer jan-auer requested review from mitsuhiko and a team June 24, 2020 18:02
@jan-auer jan-auer self-assigned this Jun 24, 2020
@jan-auer jan-auer force-pushed the fix/validate-session-timestamps branch from 5a53f31 to c29a7e9 Compare June 24, 2020 18:19
@jan-auer jan-auer merged commit c7f35bc into master Jun 25, 2020
@jan-auer jan-auer deleted the fix/validate-session-timestamps branch June 25, 2020 07:54
@fpacifici
Copy link
Contributor

Is this to prevent the issue we had yesterday with negative received dates? If yes, are you planning to remove the special case we added to the snuba connsumer ? https://github.com/getsentry/snuba/blob/master/snuba/datasets/sessions_processor.py#L53-L56

@jan-auer
Copy link
Member Author

@fpacifici I'll leave that up to you and Snuba owners. There's probably not much harm in keeping it, and it adds some visibility, in case this ever regresses in the future.

@fpacifici
Copy link
Contributor

ok, will leave it there, then.

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

Successfully merging this pull request may close these issues.

3 participants