Git Product home page Git Product logo

Comments (9)

lvca avatar lvca commented on August 25, 2024 1

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.

lvca avatar lvca commented on August 25, 2024

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.

Jurgen-Aquilina avatar Jurgen-Aquilina commented on August 25, 2024

@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.

lvca avatar lvca commented on August 25, 2024

It seems ArcadeDB can't write to the storage for some reason. Are you running it with docker?

from arcadedb.

Jurgen-Aquilina avatar Jurgen-Aquilina commented on August 25, 2024

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.

lvca avatar lvca commented on August 25, 2024

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.

lvca avatar lvca commented on August 25, 2024

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.

lvca avatar lvca commented on August 25, 2024

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.

lvca avatar lvca commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.