Info
Using invalid iterator
Undefined behavior may result; the program may crash or subtly misbehave. An invalid or past-the-end iterator is being used
/src/mongo/db/catalog/multi_index_block.cpp:244: INVALIDATE_ITERATOR 116104 Function "end" creates an iterator.
/src/mongo/db/catalog/multi_index_block.cpp:244: INVALIDATE_ITERATOR 116104 Assigning: "indexResumeInfo" = "std::find_if(resumeInfoIndexes.begin(), resumeInfoIndexes.end(), mongo::MultiIndexBlock::init(mongo::OperationContext *, mongo::Collection *, std::vector > const &, std::function > &)>, boost::optional const &)::[lambda(mongo::IndexSorterInfo const &) (instance 1)](info))".
/src/mongo/db/catalog/multi_index_block.cpp:251: INVALIDATE_ITERATOR 116104 Dereferencing iterator "indexResumeInfo" though it is already past the end of its container.
Top User Comments
xgen-internal-githook commented on Wed, 12 Aug 2020 12:30:31 +0000:
Author:
{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}
Message: SERVER-50127 fail index build resume if we cannot find resume info using index spec
Branch: master
https://github.com/mongodb/mongo/commit/b83bc195a32e3ecd2f5120f5e76a9f8726dd2fad
benety.goh commented on Fri, 7 Aug 2020 20:40:28 +0000:
The std::find_if() searches a vector that is constructed from state written to disk before a clean shutdown. It's very unlikely we should fail to locate the entry unless the on-disk state was somehow corrupted before startup.