lwhite1 / daboodb Goto Github PK
View Code? Open in Web Editor NEWA simple, pure java document store
License: Other
A simple, pure java document store
License: Other
This involves at least 2 things.
First, we have to make sure we have an approach to loading configuration files that works well at startup regardless of whether we're in Embedded or ClientServer mode.
Second, we need a way to make changes easily so the test framework can exercise every implementation of a given interface, and not just the one set by default in the configuration properties files.
java.io.FileNotFoundException: src/main/resources/server.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at org.daboodb.daboo.server.ServerSettings.loadServerSettings(ServerSettings.java:154)
at org.daboodb.daboo.server.ServerSettings.getInstance(ServerSettings.java:40)
at org.daboodb.daboo.server.Database.init(Database.java:199)
at org.daboodb.daboo.server.Database.writeLog(Database.java:213)
at org.daboodb.daboo.server.Database.handleRequest(Database.java:61)
at org.daboodb.daboo.server.DirectCommServer.handleRequest(DirectCommServer.java:26)
at org.daboodb.daboo.client.DirectCommClient.sendRequest(DirectCommClient.java:19)
at org.daboodb.daboo.client.DbClient.write(DbClient.java:91)
at org.daboodb.performance.LoadRunner1.main(LoadRunner1.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Exception in thread "main" org.daboodb.daboo.shared.exceptions.RuntimeRequestException: A Throwable was caught handling a WRITE request
at org.daboodb.daboo.server.Database.handleRequest(Database.java:79)
at org.daboodb.daboo.server.DirectCommServer.handleRequest(DirectCommServer.java:26)
at org.daboodb.daboo.client.DirectCommClient.sendRequest(DirectCommClient.java:19)
at org.daboodb.daboo.client.DbClient.write(DbClient.java:91)
at org.daboodb.performance.LoadRunner1.main(LoadRunner1.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: org.daboodb.daboo.shared.exceptions.StartupException: Unable to load server settings as Java properties
at org.daboodb.daboo.server.ServerSettings.loadServerSettings(ServerSettings.java:159)
at org.daboodb.daboo.server.ServerSettings.getInstance(ServerSettings.java:40)
at org.daboodb.daboo.server.Database.init(Database.java:199)
at org.daboodb.daboo.server.Database.writeLog(Database.java:213)
at org.daboodb.daboo.server.Database.handleRequest(Database.java:61)
... 9 more
Caused by: java.io.FileNotFoundException: src/main/resources/server.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at org.daboodb.daboo.server.ServerSettings.loadServerSettings(ServerSettings.java:154)
... 13 more
make it optional. Embedded mode won't normally need it.
should support:
I think we could do without the DocumentContent interface and have docs implement Document directly, or create a DocumentWrapper class. We could also provide an AbstractDocumentWrapper that made this explicit.
My sense is that this would be a usability improvement for devs, but that needs to be evaluated.
Implemented
Provide a way to configure the system for better performance and scaling when range searches are not required.
Using HFT chronicle? Link: https://github.com/OpenHFT/Chronicle-Logger
In any case we should use fast logging with a binary format. Presumably, that format would be protobufs.
There is a protobuf file already in dabu for requests, at /src/main/resources/proto/Request.proto
We'd need another one for logging.
The generated java files currently go in: src/main/java/org/dabudb/dabu/generated/protobufs/
We're using the latest 3.0 Beta version of the protobuf compiler: 3.0.0-beta-2.
We should track the length of time that transactions take,
Coverage should be ~90% (excluding generated protobuf code) for version 1.0
All reads and writes in a batch should be transactional. (Turn off for better performance?)
self explanatory.
Should we go back to having serialization be explicit and providing an implementation that works with protobufs? Current implementation seems not well thought out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.