Open yujihoo opened 8 months ago
Hello, At the first glance the exception may be caused by multiple storage instance accessing one storage target. This must not happen. Regarding concurrency and channels:
@hg-ms Is there any way if I want to access storage from multiple storage manager instances?
No, it’s not possible to access a storage target from multiple storage manager instances simultaneous except the limited Read-Only Mode.
Will EmbeddedStorageManager storageManager = EmbeddedStorage .Foundation() .setLockFileSetupProvider(Storage.LockFileSetupProvider()) .start(); mentioned in https://docs.eclipsestore.io/manual/storage/configuration/lock-file.html work? Facing an issue with the above code too.
The Lock File will help to prevent a second storage manager accessing the storage target. If a manager has locked the storage all others will throw an StorageExceptionInitialization at startup. It may happen that the lock file is not created automatically, in that case you need to create an empty named “used.lock” in the storage directory manually.
Environment Details
Describe the bug
If we have a channel count equals to 1, and the service is being accessed by more than one person to read and write into the channel_0, it shows the following error? Apart from increasing the channel count (how much should I increase as it might affect performance too?), is there any other way to solve this? I want to control the concurrency like Redis does, which makes a queue for all the incoming operations on the data instead of using multi-threads?
Error