Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12307

ObjectID 5-byte random value should contain process and machine

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None
    • 0.2

      Description

      Hi Team,

      According to https://github.com/mongodb/specifications/blob/master/source/objectid.rst#specification, ObjectID specification states:

      The ObjectID BSON type is a 12-byte value consisting of three different portions (fields):

      • a 4-byte value representing the seconds since the Unix epoch in the highest order bytes,
      • a 5-byte random number unique to a machine and process,
      • a 3-byte counter, starting with a random value.

      whereas the docs (https://docs.mongodb.com/manual/reference/method/ObjectId/#description) states:

      The 12-byte ObjectId value consists of:

      • a 4-byte value representing the seconds since the Unix epoch,
      • a 5-byte random value, and
      • a 3-byte counter, starting with a random value.

      Please update the documentation reflecting the change for "5-byte random value".

      Let me know if you need more details!

       

      Kanika

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            kanika.singla@mongodb.com Kanika Singla (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 5 weeks, 2 days ago