Idea X is indexing in foreground when JDK is changed.

Here is sample thread dump. Let me know if this is normal behaviour.

"AWT-EventQueue-1 10.0#IU-99.18, eap:false" prio=10 tid=0x00000000411a4800 nid=0x6cc8 runnable [0x00007f8e3c5bf000]
   java.lang.Thread.State: RUNNABLE
     at java.io.UnixFileSystem.getLength(Native Method)
     at java.io.File.length(File.java:848)
     at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:235)
     at com.intellij.util.io.ResizeableMappedFile.resize(ResizeableMappedFile.java:57)
     at com.intellij.util.io.ResizeableMappedFile.expand(ResizeableMappedFile.java:74)
     at com.intellij.util.io.ResizeableMappedFile.ensureSize(ResizeableMappedFile.java:68)
     at com.intellij.util.io.ResizeableMappedFile.put(ResizeableMappedFile.java:172)
     at com.intellij.util.io.PersistentEnumerator.allocVector(PersistentEnumerator.java:399)
     at com.intellij.util.io.PersistentEnumerator.enumerateImpl(PersistentEnumerator.java:354)
     at com.intellij.util.io.PersistentEnumerator.enumerate(PersistentEnumerator.java:222)
     - locked <0x00007f8e5c51b878> (a com.intellij.util.io.PagedFileStorage$StorageLock)
     - locked <0x00007f8e5c5f9398> (a com.intellij.util.io.PersistentHashMap)
     at com.intellij.util.io.PersistentHashMap$2.onDropFromCache(PersistentHashMap.java:103)
     at com.intellij.util.io.PersistentHashMap$2.onDropFromCache(PersistentHashMap.java:95)
     at com.intellij.util.containers.SLRUMap$2.removeEldestEntry(SLRUMap.java:58)
     at com.intellij.util.containers.hash.LinkedHashMap.put(LinkedHashMap.java:98)
     at com.intellij.util.containers.SLRUMap.put(SLRUMap.java:91)
     at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:41)
     at com.intellij.util.io.PersistentHashMap.appendData(PersistentHashMap.java:224)
     - locked <0x00007f8e5c51b878> (a com.intellij.util.io.PagedFileStorage$StorageLock)
     - locked <0x00007f8e5c5f9398> (a com.intellij.util.io.PersistentHashMap)
     at com.intellij.util.indexing.MapIndexStorage$1.onDropFromCache(MapIndexStorage.java:117)
     at com.intellij.util.indexing.MapIndexStorage$1.onDropFromCache(MapIndexStorage.java:68)
     at com.intellij.util.containers.SLRUMap$2.removeEldestEntry(SLRUMap.java:58)
     at com.intellij.util.containers.hash.LinkedHashMap.put(LinkedHashMap.java:98)
     at com.intellij.util.containers.SLRUMap.put(SLRUMap.java:91)
     at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:41)
     at com.intellij.util.indexing.MapIndexStorage.read(MapIndexStorage.java:230)
     at com.intellij.util.indexing.MapIndexStorage.addValue(MapIndexStorage.java:250)
     at com.intellij.util.indexing.MemoryIndexStorage.addValue(MemoryIndexStorage.java:133)
     at com.intellij.util.indexing.MapReduceIndex.updateWithMap(MapReduceIndex.java:223)
     at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:202)
     at com.intellij.util.indexing.FileBasedIndex$21.run(FileBasedIndex.java:1377)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeNonCancelableSection(ProgressManagerImpl.java:142)
     at com.intellij.util.indexing.FileBasedIndex.updateSingleIndex(FileBasedIndex.java:1378)
     at com.intellij.util.indexing.FileBasedIndex.access$2600(FileBasedIndex.java:94)
     at com.intellij.util.indexing.FileBasedIndex$UnindexedFilesFinder.processFile(FileBasedIndex.java:1775)
     at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:1968)
     at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:1965)
     at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:1965)
     at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:1965)
     at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:1965)
     at com.intellij.util.indexing.FileBasedIndex.iterateIndexableFiles(FileBasedIndex.java:1946)
     at com.intellij.util.indexing.UnindexedFilesUpdater.queryNeededFiles(UnindexedFilesUpdater.java:50)
     at com.intellij.openapi.project.CacheUpdateSession.<init>(CacheUpdateSession.java:51)
     at com.intellij.openapi.project.CacheUpdateRunner.queryNeededFiles(CacheUpdateRunner.java:54)
     at com.intellij.openapi.project.DumbServiceImpl.scheduleCacheUpdate(DumbServiceImpl.java:135)
     at com.intellij.openapi.project.DumbServiceImpl.queueCacheUpdate(DumbServiceImpl.java:95)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.b(ProjectRootManagerImpl.java:615)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.e(ProjectRootManagerImpl.java:552)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$000(ProjectRootManagerImpl.java:72)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.c(ProjectRootManagerImpl.java:133)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.a(ProjectRootManagerImpl.java:146)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.access$1500(ProjectRootManagerImpl.java:103)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:442)
     at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$JdkTableMultilistener.jdkAdded(ProjectRootManagerImpl.java:925)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
     at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:183)
     at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:175)
     at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:167)
     at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:40)
     at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:106)
     at $Proxy60.jdkAdded(Unknown Source)
     at com.intellij.openapi.projectRoots.impl.ProjectJdkTableImpl.addJdk(ProjectJdkTableImpl.java:197)
     at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel$2.run(ProjectSdksModel.java:151)
     at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:834)
     at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel.apply(ProjectSdksModel.java:137)
     at com.intellij.openapi.roots.ui.configuration.projectRoot.JdkListConfigurable.apply(JdkListConfigurable.java:170)
     at com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.apply(ProjectStructureConfigurable.java:274)
     at com.intellij.openapi.options.ex.SingleConfigurableEditor.doOKAction(SingleConfigurableEditor.java:123)
     at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1212)
     at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1189)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     at java.awt.Component.processMouseEvent(Component.java:6263)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
     at java.awt.Component.processEvent(Component.java:6028)
     at java.awt.Container.processEvent(Container.java:2041)
     at java.awt.Component.dispatchEventImpl(Component.java:4630)
     at java.awt.Container.dispatchEventImpl(Container.java:2099)
     at java.awt.Component.dispatchEvent(Component.java:4460)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
     at java.awt.Container.dispatchEventImpl(Container.java:2085)
     at java.awt.Window.dispatchEventImpl(Window.java:2478)
     at java.awt.Component.dispatchEvent(Component.java:4460)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:502)
     at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
     at java.awt.Dialog$1.run(Dialog.java:1046)
     at java.awt.Dialog$3.run(Dialog.java:1098)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.Dialog.show(Dialog.java:1096)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:670)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:412)
     at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1063)
     at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1048)
     at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:149)
     at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:137)
     at com.intellij.ide.actions.ShowStructureSettingsAction.actionPerformed(ShowStructureSettingsAction.java:35)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:234)
     at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:629)
     at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:98)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:220)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:92)
     at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
     at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
     at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
     at java.awt.Component.processMouseEvent(Component.java:6263)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
     at java.awt.Component.processEvent(Component.java:6028)
     at java.awt.Container.processEvent(Container.java:2041)
     at java.awt.Component.dispatchEventImpl(Component.java:4630)
     at java.awt.Container.dispatchEventImpl(Container.java:2099)
     at java.awt.Component.dispatchEvent(Component.java:4460)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
     at java.awt.Container.dispatchEventImpl(Container.java:2085)
     at java.awt.Window.dispatchEventImpl(Window.java:2478)
     at java.awt.Component.dispatchEvent(Component.java:4460)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:502)
     at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Please sign in to leave a comment.