Comments (9)
I was able to spin a Windows machine and many tests won't pass, so there is definitely something to fix there. I'm gonna work today on it, I guess it's something about paths because all our users on Linux, Mac and other Unix based OSS never reported such problems.
from arcadedb.
I can't reproduce it. I wrote this test and after running it multiple times, the database is always opened correctly.
I put a System.exit(1);
to skip the soft close of the database (that is database.close()
):
public class TestCaseIssue100 {
public static void main(String[] args) throws Exception {
new TestCaseIssue100().run();
}
private void run() {
//FileUtils.deleteRecursively(new File("./target/testcase-issue100"));
DatabaseFactory factory = new DatabaseFactory("./target/testcase-issue100");
Database database = factory.exists() ? factory.open() : factory.create();
database.transaction(() -> {
if (!database.getSchema().existsType("TestType")) {
DocumentType doc = database.getSchema().createDocumentType("TestType");
doc.createProperty("a", Type.STRING);
doc.createProperty("b", Type.STRING);
doc.createProperty("c", Type.STRING);
doc.createProperty("d", Type.INTEGER);
}
});
System.exit(1);
}
}
from arcadedb.
@lvca did you run that on Windows?
I ran your exact code and got the following errors:
2021-10-07 12:32:07.884 WARNI [EmbeddedSchema] Cannot find bucket TestType_0 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.894 WARNI [EmbeddedSchema] Cannot find bucket TestType_1 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_2 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_3 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_4 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_5 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_6 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.895 WARNI [EmbeddedSchema] Cannot find bucket TestType_7 for type 'TestType', removing it from type configuration
2021-10-07 12:32:07.935 WARNI [EmbeddedDatabase] Database 'testcase-issue100' was not closed properly last time
2021-10-07 12:32:07.936 WARNI [TransactionManager] Started recovery of database 'testcase-issue100'
2021-10-07 12:32:07.952 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_0.wal'
2021-10-07 12:32:07.952 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_1.wal'
2021-10-07 12:32:07.953 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_2.wal'
2021-10-07 12:32:07.953 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_3.wal'
2021-10-07 12:32:07.955 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_4.wal'
2021-10-07 12:32:07.955 WARNI [WALFile] Error on deleting file './target/testcase-issue100/txlog_5.wal'
2021-10-07 12:32:07.962 WARNI [TransactionManager] Recovery of database 'testcase-issue100' completed
from arcadedb.
It seems ArcadeDB can't write to the storage for some reason. Are you running it with docker?
from arcadedb.
No. it's running directly on windows and writing to a column on a separate hard disk so should have permission to read/write
from arcadedb.
Running the basic test suite against the engine package, this is the report:
[ERROR] Tests run: 830, Failures: 2, Errors: 507, Skipped: 3
from arcadedb.
Working on a separate branch (windows-issues
), I already fixed most of the issues regarding the managing of paths + proper closing of file because in Windows opening a file is not "reentrant".
from arcadedb.
The branch windows-issues
is usable under Windows. Still, some tests won't pass which we're working on them. Those remaining issues are on the tests themselves than the regular usage of the DBMS.
from arcadedb.
windows-issues
merged into main
branch. Now it's working under Windows, still, some tests won't pass. I'm pretty sure it's about how the tests are designed than the engine.
from arcadedb.
Related Issues (20)
- Can i have whole record as a json in select query and having condition on referenced table as well? HOT 6
- "Error on parsing bind message: null" when using node-postgres driver
- CREATE INDEX fails with manual index name HOT 1
- Concurrent Modification exception while importing same type vertices using multiple thread and buckets with thread strategy HOT 3
- Error in variable scope? HOT 2
- SQL: support for `break` statement in SQL script foreach loops HOT 3
- Manually escape $ for cypher when there is a new line in this same string
- The last CONSOLE.log statement in a SQL SCRIPT is buffered but not output HOT 6
- Accessing a result set has unexpected side effects HOT 7
- Support for encryption in serializer HOT 6
- HTTP-API: "limit" request property ignored for non-SQL HOT 7
- SQL Script: BREAK is ignored when followed by other statements HOT 2
- SQL Script: BREAK is ignored in nested FOREACH loop HOT 2
- Gremlin ".count()" ignores ".has" queries with boolean properties HOT 3
- The studio uses absolute URLs. HOT 1
- Upgrading container 23.7.1 -> 24.6.1 resulted "permission denied" on databases HOT 10
- Unexpect Behavior when issuing `shutdown` command over HTTP HOT 1
- custom plugins broken after update from 24.2.1 to 24.5.1 HOT 5
- Wipe out record content on record delete
- MATCH query with NOT pattern fails to return unique vertices HOT 2
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 arcadedb.