You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UI locking: Spring, CDI, signals and setLocale integrations #27584
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.
Spring scopes lock the session to reach the bean store in session attributes: VaadinUIScope, VaadinRouteScope, VaadinSessionScope, BeanStore. Taking the session lock while holding a UI lock is allowed by rule 1, so these mostly need the switch to session.lock()/unlock() and tests.
Signals: the transaction fallback returns no transaction when the session lock is not held, so signal changes made in a UI-only-locked handler would not be batched. It likely needs a per-UI transaction.
Activity
totally-not-ai commentedon Dec 1, 2026
Triage: valid sub-task, blocked. It cannot start until the per-UI lock core (#27582) and the lock rules in #24187 are settled.
session.hasLock(), which will be false.VaadinSession.setLocaleholds 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.setLocaleupdates other UIs asynchronously throughUI.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
session.lock()/unlock()and tests.session.hasLock()is true, so@VaadinSessionScopedbeans become unavailable in UI-only-locked handlers unless rule 3 of UI locking: per-UI lock core behind an experimental feature flag #27582 is relaxed or the context takes the lock.vaadin-quarkus/.../contexthas the same session-lock assumption.setLocale: VaadinSession.setLocale.