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

Emit session end event when completer finishes upload #6756

Merged
merged 10 commits into from
May 11, 2021

Conversation

quinqu
Copy link
Contributor

@quinqu quinqu commented May 6, 2021

Purpose

The purpose is to emit a session.end event when the upload completer uploads the session. As stated in the issue below, it makes it hard to locate the session without this event.

Also, when session_recording is in sync mode and the node dies/becomes disconnected during a session, the session recording will still show up in the web UI

Fixes #6606, #6125

Implementation

Get session events from the UploadCompleter audit log, if session.end does not exist -- fill in field values needed for session.end, then emit the event.

@quinqu quinqu force-pushed the jane/emit-session-end-upload-completer branch from c9952cd to 3d2ac0c Compare May 6, 2021 20:40
@quinqu quinqu force-pushed the jane/emit-session-end-upload-completer branch from 58144cd to c44d922 Compare May 6, 2021 20:42
@quinqu quinqu force-pushed the jane/emit-session-end-upload-completer branch from 5fc3f93 to c89a63c Compare May 6, 2021 20:44
@quinqu quinqu marked this pull request as ready for review May 6, 2021 20:46
lib/events/complete.go Outdated Show resolved Hide resolved
@quinqu quinqu requested a review from tcsc May 10, 2021 15:31
Copy link
Contributor

@fspmarshall fspmarshall left a comment

Choose a reason for hiding this comment

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

LGTM once completer double-checks that session.end is really missing.

lib/events/complete.go Outdated Show resolved Hide resolved
lib/events/complete.go Outdated Show resolved Hide resolved
lib/events/complete.go Outdated Show resolved Hide resolved
@quinqu quinqu requested review from xacrimon and removed request for xacrimon May 11, 2021 16:14
Copy link
Contributor

@klizhentas klizhentas left a comment

Choose a reason for hiding this comment

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

Bot.

@quinqu quinqu merged commit 6c67067 into master May 11, 2021
@quinqu quinqu deleted the jane/emit-session-end-upload-completer branch May 11, 2021 19:58
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.

Whenever a session completer finishes the session, it should emit session.end event
5 participants