Skip to content

message_id collisions in sentry #92

Closed

Description

@maraujop

Hi David,

I have seen you generate message_ids using the code line:

message_id = uuid.uuid4().hex

I haven't seen anywhere that you check if the message_id already exists in the DB, I'm guessing this is because possibilities of having a collision are so low that are meaningless. But I just wanted to make sure, this is done on purpose and that you are aware of this.

Best regards,
Miguel Araujo

Activity

  1. evanreiser commented on Mar 1, 2011

    @evanreiser

    I'm not a uuid expert, but I believe with UUID 4 as long as its a different time and a different host machine, then it won't be possible to see a UUID collision

  2. dcramer commented on Mar 25, 2011

    @dcramer
    Member

    I don't believe the chances of a collision are within the scope of this project, and would be really difficult to implement in most situations. The message_id is generated before hand simply because it isnt guaranteed to exist on the server before the client finishes whatever its doing.

  3. locked and limited conversation to collaborators on Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions