From 30ef0f556f88cda8cfc99a08c9196d07f79ab2c2 Mon Sep 17 00:00:00 2001 From: Ruslan Cheremin Date: Fri, 26 Sep 2025 15:30:00 +0200 Subject: [PATCH] [vfs] IJPL-175305: add diagnostics GitOrigin-RevId: 393fee7d599839fdc7e4e3bd1653bb93d2838260 --- .../PersistentFSRecordsLockFreeOverMMappedFile.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java index 612865a13105..90f15f949b2e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java @@ -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() + ")" + ); } }