View Issue Details

IDProjectCategoryView StatusLast Update
0005398SymmetricDSBugpublic2022-08-30 13:02
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.12.17 
Target Version3.12.18Fixed in Version3.12.18 
Summary0005398: Batch Locking issue when exceptions occur during locking (semaphore and batch file locking)
DescriptionWhen cluster staging is enabled, and when there are I/O errors working with the file system when trying to execute batch file locks, the exception is thrown and the return of the lock is null because the return is not actually executed. So when the application that received the exception goes to release the file lock and the semaphore lock, there is no lock object to release so the semaphore lock never is released, causing any other threads waiting on this batch lock to be released to wait forever.

The batch lock needs to be released whenever there is an exception thrown.
Steps To Reproduce1. cluster.staging.enabled=true
2. Common batch
3. Shared file system for batches
4. Run synch for one node for a batch, and make sure that the creation of the batch lock file throws an exception.
5. Run synch for another node for same batch.
6. Second synch thread should be waiting for release of semaphore.
Tagsextract

Related Changesets

SymmetricDS: 3.12 10d38b2a

2022-08-11 15:35:37

pmarzullo

Details Diff
0005398: Batch Locking issue when exceptions occur during locking
(semaphore and batch file locking)
Affected Issues
0005398
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/DataExtractorService.java Diff File

SymmetricDS: 3.13 5a1ad3da

2022-08-11 15:35:37

pmarzullo

Details Diff
0005398: Batch Locking issue when exceptions occur during locking
(semaphore and batch file locking)
Affected Issues
0005398
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/DataExtractorService.java Diff File

SymmetricDS: 3.14 8f210f9e

2022-08-11 15:35:37

pmarzullo

Details Diff
0005398: Batch Locking issue when exceptions occur during locking
(semaphore and batch file locking)
Affected Issues
0005398
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/DataExtractorService.java Diff File

Issue History

Date Modified Username Field Change
2022-08-11 15:34 pmarzullo New Issue
2022-08-11 15:34 pmarzullo Status new => assigned
2022-08-11 15:34 pmarzullo Assigned To => pmarzullo
2022-08-11 15:34 pmarzullo Tag Attached: extract
2022-08-11 15:58 pmarzullo Status assigned => resolved
2022-08-11 15:58 pmarzullo Resolution open => fixed
2022-08-11 15:58 pmarzullo Fixed in Version => 3.12.18
2022-08-11 15:58 pmarzullo Note Added: 0002157
2022-08-11 16:00 pmarzullo Changeset attached => SymmetricDS 3.12 10d38b2a
2022-08-11 16:00 pmarzullo Changeset attached => SymmetricDS 3.13 5a1ad3da
2022-08-11 16:00 pmarzullo Changeset attached => SymmetricDS 3.14 8f210f9e
2022-08-30 13:02 admin Status resolved => closed