-
-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Milestone
Description
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)
}
}
Reactions are currently unavailable