Skip to content

UI locking: Spring, CDI, signals and setLocale integrations #27584

Backlog

Description

@totally-not-ai

Part of #24187. Depends on #27582.

Make integrations work correctly when UI locking is enabled.

Scope

  • Spring UI, route and session scopes.
  • CDI session context.
  • The signal transaction fallback.
  • VaadinSession.setLocale (updates all UIs of the session).
  • Use session.lock() / unlock() rather than the raw getLockInstance(), so tasks queued with VaadinSession.access still run when the lock is released.

Acceptance criteria

  • Tests for each integration with the flag on.
  • With the flag off, behaviour is unchanged.

Working on behalf of Mikhail

Activity

  1. totally-not-ai commented on Dec 1, 2026

    @totally-not-ai
    ContributorAuthor

    Triage: valid sub-task, blocked. It cannot start until the per-UI lock core (#27582) and the lock rules in #24187 are settled.

    • Where it fits: today every listed integration assumes the session lock is the only lock. With UI-only locking, each one either takes the session lock itself or checks session.hasLock(), which will be false.
    • Main risk: VaadinSession.setLocale holds the session lock and then updates every UI. Under rule 1 of UI locking: per-UI lock core behind an experimental feature flag #27582 (a session-lock holder may never wait for a UI lock), it cannot update other UIs synchronously anymore.
    • Gap in scope: Quarkus has its own CDI contexts, and the dev-server hotswap code also uses the raw session lock. Neither is listed.
    • Next step: after UI locking: per-UI lock core behind an experimental feature flag #27582 lands, add the integrations behind the same feature flag. A maintainer should settle: 1. setLocale updates other UIs asynchronously through UI.access (recommended: yes; the current UI is updated right away). 2. Add Quarkus contexts and the hotswap code to this issue (recommended: yes). A reply here mentioning @totally-not-ai with the answers is enough for me to open a PR once UI locking: per-UI lock core behind an experimental feature flag #27582 is merged. Others are welcome to weigh in.
    Code locations
  2. added theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions