
| Key: |
JCR-443
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Tobias Bocanegra
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
25/May/06 05:08 PM
|
|
there is a rear occation when one thread commits a transaction and another thread reads versioing related information, so that a deadlock can occurr.
example:
Thread1:
ut.begin();
session.getWorkspace().clone("default", "/content", "/content", true);
ut.commit();
Thread2:
VersionHistory vh = folder.getVersionHistory();
VersionIterator iter = vh.getAllVersions();
while (iter.hasNext()) {
Version v = iter.nextVersion();
}
to fix this issue we must ensure, that methods below the shareditemstatemgr do not call higher instances (like itemmgr) again.
|
|
Description
|
there is a rear occation when one thread commits a transaction and another thread reads versioing related information, so that a deadlock can occurr.
example:
Thread1:
ut.begin();
session.getWorkspace().clone("default", "/content", "/content", true);
ut.commit();
Thread2:
VersionHistory vh = folder.getVersionHistory();
VersionIterator iter = vh.getAllVersions();
while (iter.hasNext()) {
Version v = iter.nextVersion();
}
to fix this issue we must ensure, that methods below the shareditemstatemgr do not call higher instances (like itemmgr) again. |
Show » |
|