Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Execution Team 2021-10-18
-
31
Description
If there is unexpectedly still indexes present after removing all indexes via IndexCatalogImpl::dropAllIndexes, we log information about the leftover state in IndexCatalogImpl::_logInternalState. However, as a part of this, we log the indexes that we should have already dropped, including calling Collection::getIndexSpec for those indexes. This is incorrect since we cannot call this function for an index that no longer exists. We can fix this by either not logging this at all, or by first checking Collection::isIndexPresent.