GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Embedded mode is not persistent on windows · Issue #100 · ArcadeData/arcadedb

Embedded mode is not persistent on windows #100

New issue
Copy link
New issue
Copy link
Closed
#111
Closed
Embedded mode is not persistent on windows#100
#111
Copy link
Assignees
lvca
Milestone
21.10.2

Description

@Jurgen-Aquilina
Jurgen-Aquilina
opened on Oct 6, 2021
Issue body actions

ArcadeDB Version: 21.10

JDK Version: Coretto 11

OS: Windows 10

Expected behavior

Stopping JVM should recover data correctly as indicated by docs.

Actual behavior

Following errors are outputted and data is lost:
Cannot find bucket type_0 for type 'Type', removing it from type configuration
Cannot find bucket type_1 for type 'Type', removing it from type configuration
Cannot find bucket type_2 for type 'Type', removing it from type configuration
Cannot find bucket type_3 for type 'Type', removing it from type configuration
Cannot find bucket type_4 for type 'Type', removing it from type configuration
Cannot find bucket type_5 for type 'Type', removing it from type configuration
Cannot find bucket type_6 for type 'Type', removing it from type configuration
Cannot find bucket type_7 for type 'Type', removing it from type configuration

<More Errors>

Error on deleting file '/<PATH_TO_DB>/txlog_0.wal'
Error on deleting file '/<PATH_TO_DB>/txlog_1.wal'
Error on deleting file '/<PATH_TO_DB>/txlog_2.wal'
Error on deleting file '/<PATH_TO_DB>/txlog_3.wal'
Error on deleting file '/<PATH_TO_DB>/txlog_4.wal'
Error on deleting file '/<PATH_TO_DB>/txlog_5.wal'

Steps to reproduce

Run the following and stop JVM

private val factory: DatabaseFactory = DatabaseFactory(<PATH_TO_DB>)
val database: Database = if (factory.exists()) {
    factory.open()
} else {
    factory.create()
}

database.transaction {
    if (!it.schema.existsType(<TYPE_NAME>)) {
        val doc = it.schema.createDocumentType(<TYPE_NAME>)
        doc.createProperty(<PROPERTY_NAME>, Type.STRING)
        doc.createProperty(<PROPERTY_NAME>, Type.STRING)
        doc.createProperty(<PROPERTY_NAME>, Type.STRING)
        doc.createProperty(<PROPERTY_NAME>, Type.INTEGER)
    }
}

Activity

  1. lvca commented on Oct 6, 2021

    @lvca
    lvca
    on Oct 6, 2021
    Member
    More actions

    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);
      }
    }
  2. Jurgen-Aquilina commented on Oct 7, 2021

    @Jurgen-Aquilina
    Jurgen-Aquilina
    on Oct 7, 2021
    Author
    More actions

    @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
    
    
  3. lvca commented on Oct 7, 2021

    @lvca
    lvca
    on Oct 7, 2021
    Member
    More actions

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

  4. Jurgen-Aquilina commented on Oct 7, 2021

    @Jurgen-Aquilina
    Jurgen-Aquilina
    on Oct 7, 2021
    Author
    More actions

    No. it's running directly on windows and writing to a column on a separate hard disk so should have permission to read/write

  5. lvca commented on Oct 7, 2021

    @lvca
    lvca
    on Oct 7, 2021
    Member
    More actions

    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.

    Reacted by Ilia Naryzhny
  6. lvca commented on Oct 7, 2021

    @lvca
    lvca
    on Oct 7, 2021
    Member
    More actions

    Running the basic test suite against the engine package, this is the report:

    [ERROR] Tests run: 830, Failures: 2, Errors: 507, Skipped: 3
    
  7. lvca commented on Oct 9, 2021

    @lvca
    lvca
    on Oct 9, 2021
    Member
    More actions

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

  8. lvca commented on Oct 11, 2021

    @lvca
    lvca
    on Oct 11, 2021
    Member
    More actions

    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.

  9. lvca commented on Oct 12, 2021

    @lvca
    lvca
    on Oct 12, 2021
    Member
    More actions

    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.

  10. lvca
    closed this as completedon Oct 12, 2021
  11. lvca
    self-assigned this
    on Oct 12, 2021
  12. lvca
    added this to the 21.10.2 milestone on Oct 12, 2021
  13. lvca
    added
    bug
    on Oct 12, 2021
  14. lvca
    linked a pull request that will close this issueMade the close/kill database exception proof to unlock the file once … #111on Oct 12, 2021
  15. tae898
    added a commit that references this issue on Jul 30, 2026

    paper-icde: two probes, degree-vs-2hop-latency and TIMESERIES row stride

    97e72d5
  16. tae898
    added 4 commits that reference this issue on Sep 15, 2026

    l4: a per-query budget, the graph lane's mechanism, and the table nam…

    1764b84

    l1tpc: the per-query budget on document analytics, the third lane

    a2ae34f

    docs: the October instrument's single prose pass, written from the sk…

    88fda4d

    page: stop publishing our own filing numbers

    7cbc5ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 21.10.2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.