code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

  • Ard Schrijvers's avatar
    REPO-1671 [Backport 4.2] make sure to synchronize on the jcr session to avoid thread safety issues · d9c77150
    Ard Schrijvers authored
    If we synchronize on the monitor object, there is room for concurrent access on the jcr session
    because code that created the lock can call for example #isLive which can work on the
    same jcr session as the background executor job does that refreshes the lock.
    
    Also made sure that if #setTimeout fails with a repository exception, that this exception
    is propagated and results in a lock exception. Before this exception would only be logged,
    and situations were seen that the background thread that refreshes the lock would log
    a repository exception in #setTimeout every 52 seconds (default 1 minute minus 8 second delay)
    were it should abandon the refreshing completely.
    
    In case of an exception, always log the stacktrace and not just in debug mode
    
    (cherry picked from commit 2aa0536f)
    d9c77150
Name
Last commit
Last update
api Loading commit data...
builtin Loading commit data...
config Loading commit data...
connector Loading commit data...
dependencies Loading commit data...
deprecated Loading commit data...
engine Loading commit data...
jaxrs Loading commit data...
mockutils Loading commit data...
modules Loading commit data...
provider Loading commit data...
resources Loading commit data...
scripts Loading commit data...
servlets Loading commit data...
test Loading commit data...
testcontent Loading commit data...
testutils Loading commit data...
upgrade Loading commit data...
utilities Loading commit data...
workflow Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
NOTICE Loading commit data...
README Loading commit data...
pom.xml Loading commit data...