Skip to content

[v9] Allow non-moderated sessions during outage#18442

Merged
rosstimothy merged 2 commits intobranch/v9from
tross/backport-17309/v9
Nov 21, 2022
Merged

[v9] Allow non-moderated sessions during outage#18442
rosstimothy merged 2 commits intobranch/v9from
tross/backport-17309/v9

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Nov 14, 2022

Backport #17309 to branch/v9

Note: this also contains the changes to lib/srv/sessiontracker.go from #15155

In the event that a SessionTracker wasn't able to be persisted in the
backend the session was aborted and the user received an error about
being unable to upsert session trackers. While this is required in the
event that the session being established is a moderated session, other
sessions should be allowed to be created without a SessionTracker
resource existing in the backend.

To allow non-moderated sessions to be established in the event there
was a failure persisting the resource we can proceed in the same
manner as when the recording mode does not match the component.
This ensures that a local SessionTracker resource is created,
but any operations performed on it are not attempted to be sent to
the Auth server.

The session `log` was also updated to include a `session_id` field
so that it doesn't need to be added to every individual log message.

Closes #17024 and #17026
@rosstimothy rosstimothy force-pushed the tross/backport-17309/v9 branch from 59a25ee to d3ee25a Compare November 16, 2022 16:46
@rosstimothy rosstimothy marked this pull request as ready for review November 17, 2022 13:35
@rosstimothy
Copy link
Copy Markdown
Contributor Author

friendly ping @r0mant @capnspacehook

@rosstimothy rosstimothy enabled auto-merge (squash) November 21, 2022 16:53
@rosstimothy rosstimothy merged commit f28994b into branch/v9 Nov 21, 2022
@r0mant r0mant deleted the tross/backport-17309/v9 branch December 5, 2022 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants