
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
10/Mar/06 04:05 AM
|
|
The TCK test ThreadSafe runs multiple threads, where each thread tries to persist the same pc instance using its own PM. The expected behavior is that one thread succeeds persisting the pc instance and stores it at transaction commit. All other threads should result in a JDOException because the pc instance is already bound to a different PM. All threads close the PM at the end.
Now, it might happen that the succeeding thread closes the PM before a parallel thread tries to persist the pc instance. The behavior of pm.makePersistence for a pc instance bound to a closed pm is not specified, so it does not necessarily result in an exception.
The test case should be changed such that the succeeding thread waits for all the other threads before closing the PM. Please note, the solution must be robust enough to avoid a deadlock situation even if an erroneous JDO implementation would allow multiple threads to succeed persisting the pc instance.
|
|
Description
|
The TCK test ThreadSafe runs multiple threads, where each thread tries to persist the same pc instance using its own PM. The expected behavior is that one thread succeeds persisting the pc instance and stores it at transaction commit. All other threads should result in a JDOException because the pc instance is already bound to a different PM. All threads close the PM at the end.
Now, it might happen that the succeeding thread closes the PM before a parallel thread tries to persist the pc instance. The behavior of pm.makePersistence for a pc instance bound to a closed pm is not specified, so it does not necessarily result in an exception.
The test case should be changed such that the succeeding thread waits for all the other threads before closing the PM. Please note, the solution must be robust enough to avoid a deadlock situation even if an erroneous JDO implementation would allow multiple threads to succeed persisting the pc instance. |
Show » |
made changes - 04/Feb/06 04:27 AM
| Field |
Original Value |
New Value |
|
Affects Version/s
|
|
JDO 2 beta
[ 12310683
]
|
|
Fix Version/s
|
|
JDO 2 rc1
[ 12310771
]
|
made changes - 25/Feb/06 07:41 AM
|
Fix Version/s
|
|
JDO 2 final
[ 12310830
]
|
|
Fix Version/s
|
JDO 2 rc1
[ 12310771
]
|
|
made changes - 10/Mar/06 04:05 AM
|
Resolution
|
|
Fixed
[ 1
]
|
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|