Comments (7)
I tried with channel size 1, I have the same issue.
from store.
I got a similar error and once it is on the collected data is lost forever. Any idea what causes this? I took down a copy of the data from a live system using scp
, could that have caused it (locked the file temporarily or something) 🤷♂️
from store.
Hello,
Unfortunately, we can’t reproduce this issue.
The StorageExceptionIoWriting exception indicates that the latests storage file is has not been written completely. The IndexBoundsException is similar, the storage tries to read data that is not present. Why the incomplete write happened is not visible in the provided trace.
from store.
@mstahv:
Copying an active storage is risky, as you must ensure that no write operations happen during the copy process. Even if no user code issues a store this can’t be ensured as the storage does cleanup operation if idle.
To copy a storage you need stop the storage or you can issue a full backup
from store.
@hg-ms This issue occurs to me all the time. I have stopped using eclipse store for this reason. The problem occurs on my laptop and on EC2 provisionned on AWS. Do you see any issue with the code I have provided? At least from a conceptual point of view?
Moreover, it gives the feeling that eclipse-store is either super fragile or that it can be easily used in a wrong way.
Maybe more documentation and snippets about how to use it properly would be useful? Reading the documentation I didn't find many example. Would be nice to have more use cases showcased.
from store.
Yeah, I guess so, at least for getting functional backup. In my case it is the live server that got this issue.
Another idea that might have affected this: I'm storing the data on a directory in the server and then that is mounted to the Docker container running the actual app. There might be two apps/containers accesing the same files during the update as there is "zero downtime update" configure for the system. If it is this that cause my issue, I need a different strategy (this has worked fine with RDBMSs).
I wonder still if the default is right here to throw the exeption, instead of logging some error and overriding? At least to some backup file. My case (where I'm storing weather station data for my hobby/learning project) not a biggie, but in some production system I might have lost a full day of entries (althogh store in server memory just fine), if EclipseStore would have overridden I assume would have only lost just one entry 🤷♂️
from store.
@mstahv:
More than one EclipseStore instance accessing the persisted data is not supported. This could explain your corrupted storage files. This is a major difference to RDBMS.
@ghilainm:
Regarding your code, I need to assume that the method createUser
doesn’t modify the object graph in any way or does not do any call to EclipseStore so that there can’t be any concurrency problem, same for the class PerfData.
Looking at the store calls in the code snippet there is one unnecessary: store.storageManager.store(userDataCreated)
only persists the userDataCreated object without any relation to the userData as the change (add) to user dataData is not persisted jet. This is done later, every 100th future. Here you persist the userData. The call storageManager.store(userData)
perists the userData change and would also perist the referenced new UserDataCreated if not done before.
from store.
Related Issues (20)
- Spring integration lazy loading don't stream data when restarting application HOT 5
- Bootloader issues with Quarkus HOT 5
- Type not persistable: "class java.lang.Thread" for customized class loader and Postgresql storage target HOT 3
- Handling checked exceptions HOT 1
- IndexOutOfBoundsException when using values().stream() on empty LazyHashMap HOT 1
- Entity and Wrapper code generators in Gradle - please document HOT 3
- Versioning layer exception HOT 4
- --add-exports java.base/jdk.internal.misc=ALL-UNNAMED - please fix the docs!
- Issue with generated layered entity code - may need documentation?
- ES 1.3.1 testing against a Minio (S3-compatible ) storage backend - please help! HOT 2
- Not able to download the GUI client from MAVEN as well as the direct URl HOT 3
- Gcp Cloud storage storage target HOT 1
- java.lang.ClassNotFoundException: sun.misc.Unsafe HOT 2
- Rest Client GUI link is broken HOT 2
- Foundation type handler registration depends on order of api calls
- ObjectCopier class not found HOT 2
- The documentation for the layered entities configuration section is incorrect HOT 1
- Need help with "Error occurred in storage channel" HOT 9
- About Creating Database Issues HOT 1
- About Creating Database Issues HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from store.