Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3608

Sharding on geo sometimes fails due to shard key being too big

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 1.9.1
    • None
    • Geo, Index Maintenance, Sharding
    • None
    • ALL

    Description

      When writing objects with big arrays of geo coords, the writes will often fail with "Shard Key must be less than 512 bytes" error message.
      This only happens in a sharded environment, obviously, when writing to e.g. a single replica set without sharding everything's fine.

      Attachments

        Issue Links

          Activity

            People

              mathias@mongodb.com Mathias Stearn
              ctonhaeuser Christian Tonhäuser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: