-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Environment Details
- EclipseStore Version: 2.1.3
- JDK version: 24
- OS: Windows
Describe the bug
I checked the recent PRs / Issues and it doesn't seem this was addressed in a newer version, hence I assume updating won't change anything.
Just happens sometimes when storing a bunch of data at once in a big transaction:
Caused by: org.eclipse.store.storage.exceptions.StorageExceptionCommitSizeExceeded: Channel 0 store size 2157149122 bytes exceeds technical limit of 2^31 bytes
at org.eclipse.store.storage.types.StorageDataChunkValidator$MaxFileSize.validateDataChunk(StorageDataChunkValidator.java:358) ~[storage-2.1.3.jar:?]
at org.eclipse.store.storage.types.StorageRequestAcceptor$Default.storeData(StorageRequestAcceptor.java:175) ~[storage-2.1.3.jar:?]
at org.eclipse.store.storage.embedded.types.EmbeddedStorageBinaryTarget$Default.write(EmbeddedStorageBinaryTarget.java:80) ~[storage-embedded-2.1.3.jar:?]
... 25 more
It doesn't break anything as far as I know, BUT, I also don't know why this would be an exception.
Expected behavior
I am not entirely sure, since I don't quite understand why this is an issue. I am assuming if the file is too big for some reason, we can create another one? Or is this an actual limit of the channel size as a whole?
Or would the fix be my job, by increasing the amount of channels? I feel like it's a bit hard to say how many channels you'll need. Is there an downside to have a massive amount of channels, like tons of synchronisation overhead or so?
Maybe the documentation should provide more explanation and guidances regarding pros, cons and limits.