more logging
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Thu, 13 Aug 2020 12:50:42 +0000 (15:50 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 12:52:26 +0000 (12:52 +0000)
GitOrigin-RevId: d0c15f78f3b4d36804e8c9b8cba9d1c58af0ca69

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

index 172e261557cc44c133aa4fcc9cd520142186980f..3211e0297a27a326943bb2faf738a14e6d72c60e 100644 (file)
@@ -1167,7 +1167,11 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx {
       if (file.isValid() && content.getTimeStamp() != file.getTimeStamp()) {
         content = new CachedFileContent(file);
       }
+
+      boolean isIndexesDeleted;
+
       if (!file.isValid() || isTooLarge(file)) {
+        isIndexesDeleted = true;
         ProgressManager.checkCanceled();
         removeDataFromIndicesForFile(fileId, file);
         if (file instanceof DeletedVirtualFileStub && ((DeletedVirtualFileStub)file).isResurrected()) {
@@ -1178,6 +1182,7 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx {
         }
       }
       else {
+        isIndexesDeleted = false;
         indexingResult = doIndexFileContent(project, content);
       }
 
@@ -1187,7 +1192,7 @@ 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());
+                                 " and deleted for " + indexingResult.deletionTimesPerIndexer.keySet() + ". Indexes was wiped = " + isIndexesDeleted);
       }
       getChangedFilesCollector().removeFileIdFromFilesScheduledForUpdate(fileId);
       // Indexing time takes only input data mapping time into account.