[SERVER-14529] assertion src/mongo/db/structure/btree/key.cpp:433 Created: 11/Jul/14 Updated: 08/Feb/23 Resolved: 25/Aug/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 2.6.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dan Maas | Assignee: | Ramon Fernandez Marina |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | This happens very rarely on a tiny fraction of similar queries. The query that produced it was of the form:
where there is a geo2D index on base_map_loc with parameters {min:0, max:1024, bits:1} |
||||||||
| Participants: | |||||||||
| Description |
|
Got this assertion error, here is the log (not sure if the very first line is related to it or not):
|
| Comments |
| Comment by Ramon Fernandez Marina [ 25/Sep/14 ] | |
|
Hi fraccy, without access to the malformed index data there was no further investigation that could be done. If running validate() shows some errors there may be enough hints for us to continue the investigation. If the issue is a corrupt index key you may want to try rebuilding your indexes to see if the problem is corrected. Note that both operations may be resource-intensive and have a performance impact on your MongoDB instance. Regards, | |
| Comment by Tim Putnam [ 25/Sep/14 ] | |
|
Not sure that this should be closed, this just happened to me too. It wasn't on an update it was just on a find. Don't know what to describe really, am executing this query (its finding individual elements using indexes) a vast number of times on a collection with about 4 million docs in it, and have seen it happen just once (on 2.6.4). Can't share the data. | |
| Comment by Ramon Fernandez Marina [ 25/Aug/14 ] | |
|
dmaas, thanks for running validate(). Unfortunately if it didn't find any errors there's not a lot of information that can help us investigate further. Looks like there was a transient index corruption, but the constant adding/removing documents in this collection seems to have taken care of it. I'm going to close this ticket. If this happens again it would be of great help to get a copy of your data to investigate (we can provide a private, secure way to upload it – let us know). Regards, | |
| Comment by Dan Maas [ 26/Jul/14 ] | |
|
Thanks for the update Ramon! I have run the validate() command against all our collections. Is there anything specific I should look for? Nothing shows up in the "errors" part of the result. The collection that caused this exception has documents added and removed frequently, so the error might be transient. Next time I see the exception, I will try to run the validate command before the affected document disappears. | |
| Comment by Ramon Fernandez Marina [ 25/Jul/14 ] | |
|
dmaas, the assertion happens when inspecting an index key, and finding that it doesn't contain a valid BSON type, so this seems to indicate you have a data corruption issue. Can you check the integrity of your data using validate? You can do so by running this command:
Note that this is a resource-intensive operation and may have an impact on the performance of your MongoDB instance. |