[MAGNOLIA-4005] JackRabbit logs exceptions due to duplicate session close calls on shutdown of EE and CE Created: 27/Feb/12  Updated: 10/Mar/21

Status: Open
Project: Magnolia
Component/s: core
Affects Version/s: 4.5
Fix Version/s: 4.5.x

Type: Bug Priority: Neutral
Reporter: Eric Hechinger Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File logOnShutdown.txt    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

duplicate attempt to close session for EE and CE: Check stack traces in attachement.



 Comments   
Comment by Jan Haderka [ 28/Feb/12 ]

Issue occurs during single call to repository.shutdown() while stopping servlet context listener.

The first attempt to close the sessions is made in o.a.jr.core.RepositoryImpl at line 1078 (JR-2.4.0) when closing all active sessions.
The second attempt is initiated from same method call via workspace disposal called in o.a.jr.core.RepositoryImpl at line 1090. Workspace disposal leads to attempt to close system session, which was previously closed when closing all active sessions.
The issue is easily reproducible on fresh install of public instance of Magnolia 4.5-b7 (or higher). It is not so easily reproducible when browsed pages are already cached (sessions are not even open in that case) or when remote debugger is connected to the instance (timing problem?).
See http://www.mail-archive.com/users@jackrabbit.apache.org/msg18432.html for more details.
Possibly related JCR issues:
https://issues.apache.org/jira/browse/JCR-2749
https://issues.apache.org/jira/browse/JCR-2741

Comment by Jan Haderka [ 01/Mar/12 ]

logged as https://issues.apache.org/jira/browse/JCR-3246

Generated at Mon Feb 12 03:51:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.