[vfs] IJPL-175305: add diagnostics

GitOrigin-RevId: 393fee7d599839fdc7e4e3bd1653bb93d2838260
This commit is contained in:
Ruslan Cheremin
2025-09-26 18:13:17 +00:00
committed by intellij-monorepo-bot
parent 814332c821
commit 30ef0f556f
@@ -855,7 +855,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist
private void checkRecordIdIsValid(int recordId) throws IndexOutOfBoundsException {
if (!isValidFileId(recordId)) {
throw new IndexOutOfBoundsException(
"recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "]");
"recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "], " +
"(wasClosedProperly: " + wasClosedProperly() + ")"
);
}
}
@@ -866,7 +868,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist
}
if (!isValidFileId(parentId)) {
throw new IndexOutOfBoundsException(
"parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "]");
"parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "], " +
"(wasClosedProperly: " + wasClosedProperly() + ")"
);
}
}