Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

ID with less risk of collision #206

Closed
wants to merge 4 commits into from

Conversation

waldeinburg
Copy link
Contributor

Make sure that:

  • You have read the contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes. Settings applied in Intellij Idea with the Eclipse Code Formatter plugin.
  • You submit test cases (unit or integration tests) that back your changes.

The current implementation of message ID generation seems prone to collisions in environments that produce lots of log messages very fast.
The considerations behind the implementation is documented in a rather lengthy comment. I can move the comment to the PR thread and delete it, if you like.

I took the liberty of not using assertThat() like the rest of the unit test but rather assertEquals() and assertArrayEquals(). Especially the latter will produce much more useful information in case of errors.

Copy link
Owner

@mp911de mp911de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for having a look. I left a few comments that we should address before merging this one.

@mp911de mp911de added the type: enhancement A general enhancement label Sep 2, 2019
@mp911de mp911de added this to the 1.13.1 milestone Sep 2, 2019
@mp911de mp911de modified the milestones: 1.13.1, 1.14.0 Sep 10, 2019
mp911de pushed a commit that referenced this pull request Sep 11, 2019
mp911de pushed a commit that referenced this pull request Sep 11, 2019
mp911de pushed a commit that referenced this pull request Sep 11, 2019
mp911de pushed a commit that referenced this pull request Sep 11, 2019
mp911de added a commit that referenced this pull request Sep 11, 2019
Remove unused fields and methods. Add author tag. Reformat code.
@mp911de
Copy link
Owner

mp911de commented Sep 11, 2019

Thanks a lot. That's merged and polished now.

@mp911de mp911de closed this Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants