more logging
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Thu, 13 Aug 2020 12:54:27 +0000 (15:54 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 12:54:27 +0000 (12:54 +0000)
GitOrigin-RevId: 8709256b5c088f93b1561e40488b8327f3fa2648

platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java

index 3211e0297a27a326943bb2faf738a14e6d72c60e..3895045f78e81d8a3c90198e40ca5c67eeade76a 100644 (file)
@@ -1170,7 +1170,8 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx {
 
       boolean isIndexesDeleted;
 
-      if (!file.isValid() || isTooLarge(file)) {
+      boolean isValid = file.isValid();
+      if (!isValid || isTooLarge(file)) {
         isIndexesDeleted = true;
         ProgressManager.checkCanceled();
         removeDataFromIndicesForFile(fileId, file);
@@ -1192,7 +1193,9 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx {
       if (VfsEventsMerger.LOG != null) {
         VfsEventsMerger.LOG.info("File " + file +
                                  " indexes have been updated for indexes " + indexingResult.updateTimesPerIndexer.keySet() +
-                                 " and deleted for " + indexingResult.deletionTimesPerIndexer.keySet() + ". Indexes was wiped = " + isIndexesDeleted);
+                                 " and deleted for " + indexingResult.deletionTimesPerIndexer.keySet() +
+                                 ". Indexes was wiped = " + isIndexesDeleted +
+                                 "; is file valid = " + isValid);
       }
       getChangedFilesCollector().removeFileIdFromFilesScheduledForUpdate(fileId);
       // Indexing time takes only input data mapping time into account.