Skip to content

View.onDetach() does not release DataContext causing EclipseLink ClientSession accumulation #5162

@glebfox

Description

@glebfox

Environment

Jmix version: 2.7.4
Source: forum

Bug Description

When a Jmix FlowUI view is navigated away from, View.onDetachInternal() removes event listeners and view attributes but does not clear or release the DataContext. Entities held by the DataContext (and their data containers) retain EclipseLink lazy-loading ValueHolder references that pin the originating ClientSession and RepeatableWriteUnitOfWork in memory. Over time, this causes unbounded accumulation of EclipseLink sessions proportional to the number of view navigations across all active Vaadin sessions.

Metadata

Metadata

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions