You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
async().updateRecord() never validates, so an async update persists a record violating MANDATORY/NOTNULL with no error #7002
async().updateRecord() never calls document.validate(), so an asynchronous update persists a record that violates its schema. The synchronous paths all validate. The record ends up with a MANDATORY, NOTNULL property set to null, and no error reaches the caller or the error callback.
Where (HEAD 8cfac2923)
The synchronous paths validate - engine/src/main/java/com/arcadedb/database/LocalDatabase.java:1150, :1265, :1352:
doc.validate();
engine/src/main/java/com/arcadedb/database/async/DatabaseAsyncUpdateRecord.java has no validate() call at all (grep validate returns nothing).
Repro
Verified at 8cfac2923. Type P with name declared MANDATORY and NOTNULL, one record saved.
Synchronous control - remove the mandatory property and save:
erro do callback: (nenhum)
estado final: {"name":null,"v":3}
MANDATORY 'name' ainda presente? false
So the schema constraint is silently bypassed, an onError handler registered on the executor sees nothing, and the database is left holding a record the synchronous API would have refused to write. A later read through any path that trusts the schema (a NOTNULL assumption in a projection, an index on name) now sees a value the schema says cannot exist.
Suggested fix
Call document.validate() in DatabaseAsyncUpdateRecord before the update, matching the three synchronous sites, and route the resulting ValidationException through the task's existing error callback so the caller learns about it. Worth checking the sibling async task classes for the same omission in the same pass - the pattern here is that each async task re-implements a slice of the synchronous path and can drift from it.
Scope / confidence
High - reproduced, with the synchronous path as the control in the same run.
Fixed in #7092 (26.9.1). async().updateRecord() now validates the document like the synchronous update: a MANDATORY/NOTNULL violation is rejected, the record is left untouched, and the error reaches both the task's error callback and the executor's onError handler.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
lvca commentedon Sep 3, 2026
Fixed in #7092 (26.9.1).
async().updateRecord()now validates the document like the synchronous update: a MANDATORY/NOTNULL violation is rejected, the record is left untouched, and the error reaches both the task's error callback and the executor'sonErrorhandler.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Fix split()/collection-method receivers, append() leading null, shutd…