-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed with java.lang.IllegalStateException: Unable to claim exclusive exclusive lock on file #1446
Comments
@NaveenNatarajan97 can I suggest you try with the latest version to see if this still happens. If you can provide a (failing) unit test as part of a PR against the latest version then you have a much greater chance of this getting addressed. If you need someone to spend the time to support you I suggest you take a look at the support page and contact Chronicle Software |
@JerryShea Thanks for the response. We used the latest version 5.24ea26 and were able to reproduce the issue as well. When trying to create a PR against the latest version. We debugged and noticed. There is a timeout in the SingleTableStore.java.
The FileChannel.open took more than 10000ms which leads doWithLock method to throw IllegalStateException("Unable to claim exclusive " + type + " lock on file " + file) We noticed there is an option to change the timeout Parameter by using "chronicle.table.store.timeoutMS". We increased the timeout and we see less number of exceptions now. Increasing the chronicle.table.store.timeoutMS helps us.
|
Chronicle_Queue_Standalone_Utility.txt Thanks in advance. |
We are trying to use Chronicle Queue with the below-mentioned versions:-
Below is the error message we are encountering.
To reproduce this issue, we are attaching a Standalone Utility for the above case.
About Standalone Utility:-
This Standalone utility will Write, Read, and Clear the queue, and go to sleep. and continues 'n' number of iteration.
Command line argument:-
java -Xmx10240M -jar ChronicleQueueGenerator-WriteReadClear.jar 25 200 1000 30 1000
Syntax:-
java -Xmx10240M -jar ChronicleQueueGenerator-WriteReadClear.jar <arg_1> <arg_2> <arg_3> <arg_4> <arg_5>
Argument List:-
Arg_1: No threads.
Arg_2: No queues for each thread.
Arg_3: No of sleep duration (in ms).
Arg_4: No of bytes allocated for each queue content that needs to be populated.
Arg_5: No of iterations the write, read, and clean need to happen.
Example with explaination:-
java -Xmx10240M -jar ChronicleQueueGenerator-WriteReadClear.jar 25 200 1000 30 1000
1GB of heap space.
No. of. Threads:- 25
No. of Queues:- 200
No. of sleep duration:- 1000ms
Bytes allocated:- 30 bytes
No of iteration:- 1000
Queues will be created under the ChronicleTesting directory, where the jar is being executed.
From the above example, 25 * 200 = 5000 Queues will be created totally under the ChronicleTesting directory.
Flow:-
- First, they will write into a queue with allocated bytes. (Here, as 30bytes)
- Read from the queue.
- clear the queue.
Note:- We are looking for a solution. We came across this closed ticket (#641). As per this comment (#641 (comment)). We are attaching the Standalone Utility Jar to reproduce the issue consistently.
Requesting to take a look at this scenario.
Thanks in advance.
Standalone Utility.tar.gz
The text was updated successfully, but these errors were encountered: