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

analyzeShardKey monotonicity tests shouldn't test ObjectId type

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • Cluster Scalability 2024-11-11
    • 0

      The last 3 bytes of ObjectId by design is an incrementing counter, initialized to a random value. When the counter overflows, it is reset to 0 and continues from there. So in fact, there is no guarantee that ObjectId is increasing. 

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: