[DOCS-12307] ObjectID 5-byte random value should contain process and machine Created: 27/Dec/18  Updated: 30/Oct/23  Resolved: 13/Mar/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Kanika Singla (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 47 weeks, 2 days ago
Story Points: 0.2

 Description   

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.)



 Comments   
Comment by Ashley Brown [ 13/Mar/23 ]

Hi, we're closing this ticket because we believe the current documentation contains the requested update. If you believe this is an error, please reopen the ticket with a comment explaining why and we'll take a look. Thanks!

Comment by Bernie Hackett [ 03/Jan/19 ]

From my last comment on DOCS-10063, it looks like the server started using 5 random bytes in version 3.0. Not all drivers do this yet, though all will by MongoDB 4.2.

Regardless, I think it's safe to just document the 5 random bytes everywhere. The 3 byte machine and 2 byte process parts were never very useful. There is no need to document them.

Generated at Thu Feb 08 08:04:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.