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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.1
    • 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

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            christian.tonhaeuser@navteq.com Christian Tonhäuser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: