Replies: 2 comments 1 reply
-
Like the exception states, the data amount for a single store was too big. This is a technical limitation of the current storage engine. The next generation of the engine will eliminate this problem, but it's still in an experimental stage. For now, the solution would be to split this single store operation into multiple ones. If you can share some code, we should find a suitable solution. |
Beta Was this translation helpful? Give feedback.
-
I also noticed behavior that might be relevant to this topic and could potentially indicate a bug. While experimenting with the dataFileMaximumSize configuration, I observed the following:
When setting a high dataFileMaximumSize, the storage engine appears to reach its technical limit prematurely. Interestingly, this happens inconsistently, with failures occurring at different data sizes despite identical settings. Additionally, this issue only manifests when storing many objects individually rather than using .storeAll(). I’ve attached a graphic summarizing my test results. These focus particularly on the critical range of dataFileMaximumSize values where the issue occurs. Notably, all smaller values for the dataFileMaximumSize were successful. Although I don’t require a solution to this problem, I wanted to bring it to your attention, as it could be relevant to addressing the technical limitation or the new storage engine development. |
Beta Was this translation helpful? Give feedback.
-
While testing EclipseStore, I encountered a storage exception that I am struggling to fully understand. The specific exception is as follows:
throw new StorageException(
"Storage position for entity " + entity.objectId()
+ " exceeds the technical int value limit of " + Integer.MAX_VALUE + "."
+ " This happens when a single store grows too big."
+ " This limitation will be removed in a future version."
);
It seems to reference a hardcoded maximum value for the storage offset, which leads to an error if the store grows beyond Integer.MAX_VALUE:.
I also came across a comment (see the picture) regarding "storage management 2.0" as a potential improvement or alternative, but the comment appears to be several years old.
Could someone clarify whether this limitation is still necessary in the current version? If it is still necessary, what is the reason for this limitation? Additionally, is the mentioned approach of working with multiple files still viable, or have there been other improvements in this area?
Thank you in advance for your time and support.
Beta Was this translation helpful? Give feedback.
All reactions