<!-- llms-explorer concept facts · https://llms-explorer.com/tree/geospatial-key-extraction-error-paths-and-redaction-aware-diagnostics/ · pack 2026-10-29 · ~2175 tokens -->

# Geospatial key-extraction error paths and redaction-aware diagnostics

> Source-anchored research for Geospatial key-extraction error paths and redaction-aware diagnostics. Run status: COMPLETED.

Parent: [MongoDB Geospatial](https://llms-explorer.com/tree/mongodb-geospatial/) · 3 facets · 21 facts · page: https://llms-explorer.com/tree/geospatial-key-extraction-error-paths-and-redaction-aware-diagnostics/

## Problems, failure modes and limitations

- SERVER-128897 explains that specification-following drivers populate write-error details from errInfo and discarded the initially introduced top-level diagnostic fields. Moving the fields under errInfo fixes client visibility without a driver change; operator-facing validate diagnostics use typed accessors and are unaffected by that wire-format move. (low confidence) (verified as of 2026-09-29) — [source](https://jira.mongodb.org/browse/SERVER-128897)
- MongoDB 9.0 bounds the geospatial extraction error reason string to 256 characters. A bounded reason should not be treated as a complete copy of the original geometry or every underlying diagnostic detail. (low confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- The downstream change summary identifies LOGV2 event 12565600 as the per-document geo key-extraction diagnostic referenced by the bounded validate error. The release notes likewise direct document-level investigation to mongod logs. (medium confidence) (verified as of 2026-10-14) — [source](https://jira.mongodb.org/browse/COMPASS-10732)
- SERVER-125656 describes the motivating failure mode: logging the whole record ahead of the rejection reason let roughly 10 KB log limits hide the reason and the failing multikey sub-element. It also describes difficulties correlating extra or missing index entries with records. These are incident observations, not universal BSON-size thresholds. (low confidence) — [source](https://jira.mongodb.org/browse/SERVER-125656)
- Percona Server for MongoDB 8.0 documents that log redaction preserves metadata such as error codes while reducing diagnostic detail. Its profiler still stores queries without redaction, and its documentation warns that debug messages are not redacted. This describes Percona behavior and must not be assumed to establish MongoDB 9.0 behavior for every output channel. (low confidence) (verified as of 2026-10-27) — [source](https://docs.percona.com/percona-server-for-mongodb/8.0/log-redaction.html)
- LoopBack issue 3648 records an application-level reproduction where patching a legacy coordinate object changed field order and produced a spherical-CRS key-extraction error. This historical report motivates inspecting the actual serialized write, but does not establish a current LoopBack defect. (low confidence) — [source](https://github.com/strongloop/loopback/issues/3648)
- MongoDB 9.0 introduces named 2dsphere key-extraction errors 510 (GeoKeyExtractionFailed) and 511 (GeoKeyExtractionFailedTimeseries). Applications that match the previous unnamed assertion codes need to update their error handling. (medium confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- SERVER-125656 records a historical diagnostic failure mode: placing the complete BSON record before the rejection reason caused roughly 10 KB log truncation to hide the reason, while logging only the parent record concealed the failing features[i].geometry sub-element. This motivated separate path, element and reason diagnostics. (low confidence) — [source](https://jira.mongodb.org/browse/SERVER-125656)
- SERVER-133229 reports a remaining truncation case after the structured-diagnostics change: a long polygon coordinate listing can consume underlyingReason before the specific failure cause appears. Its proposed improvement puts the cause before the coordinates; structured logging alone does not establish that every rejection reason remains visible. (low confidence) — [source](https://jira.mongodb.org/browse/SERVER-133229)
- The downstream SERVER-125656 change summary states that the diagnostic behavior is not FCV-gated. Error-code and message parsers therefore should not assume retaining an earlier FCV preserves the older diagnostic format. (low confidence) — [source](https://jira.mongodb.org/browse/COMPASS-10732)

## Comparisons and alternatives

- In Mongoose issue 9465, a maintainer explains that coordinates made from {lat, lon, alt} objects are not valid GeoJSON and account for the reported 'Can't extract geo keys' failure. Legacy coordinate pairs are a separate MongoDB representation; diagnosing this error requires checking the stored shape and indexed path rather than assuming a server defect. (low confidence) — [source](https://github.com/Automattic/mongoose/issues/9465)

## Facts and statements

- MongoDB 9.0 documents named 2dsphere key-extraction errors 510 (GeoKeyExtractionFailed) and 511 (GeoKeyExtractionFailedTimeseries). Compatibility notes replace regular assertion codes 16755/16756 and time-series assertion codes 183934/183493; applications matching old codes require updates. (high confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- MongoDB 9.0 documents failingPath, underlyingCode, underlyingReason and failingElement within writeErrors[].errInfo for failed geo inserts and index builds. SERVER-128897 explains that nesting makes these fields available to drivers following the CRUD specification. (high confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- MongoDB 9.0 validate deduplicates identical geo failures for the same index and path into one bounded message. Identify individual failing documents through mongod logs; full per-document detail is available only with log redaction disabled. (low confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- SERVER-133229 reports remaining diagnostic limitations after SERVER-125656: long polygon vertex lists can still obscure the precise underlying rejection reason, and printed edge coordinates can lose precision relative to input. Its examples include event 12565600 and GeoKeyExtractionFailed with errInfo; structured fields do not guarantee complete polygon diagnostics. (low confidence) (verified as of 2026-10-27) — [source](https://jira.mongodb.org/browse/SERVER-133229)
- The 9.0 compatibility notes identify replaced assertion codes as 16755 and 16756 for regular 2dsphere indexes, and 183934 and 183493 for time-series collections. (low confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0-compatibility.md)
- MongoDB 9.0 validate.errors reports a bounded message identifying the affected index and path and directs operators to mongod log event 12565600 for per-document details. (medium confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- MongoDB 9.0 deduplicates identical geospatial extraction failures on the same index and path into one validate.errors message. Consequently, counting those messages does not count failing documents; document identification requires the logs. (low confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- MongoDB's 9.0 release notes condition full per-document validation logging on log redaction being disabled. The logging documentation says redactClientLogData removes sensitive values at the cost of diagnostic detail, so a diagnostic workflow must check redaction before expecting to identify an invalid document from the log. (medium confidence) (verified as of 2026-10-14) — [source](https://www.mongodb.com/docs/manual/release-notes/9.0.md)
- Percona Server for MongoDB 8.0 documents important redaction boundaries: debug messages are not redacted, and enabling the profiler still records queries in system.profile without redaction. Raising log verbosity or using the profiler can therefore expose data despite diagnostic-log redaction. (low confidence) (verified as of 2025-12-02) — [source](https://docs.percona.com/percona-server-for-mongodb/8.0/log-redaction.html)
- SERVER-133229 also reports that edge-crossing messages show rounded coordinates and reverse the longitude/latitude presentation relative to the input. Treat these as reported diagnostic-display limitations, and inspect the original failing geometry before changing stored coordinates based solely on such a message. (low confidence) — [source](https://jira.mongodb.org/browse/SERVER-133229)
