Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-4016: [Java] Use SecureRandom for file sync markers #3016

Merged

Conversation

opwvhk
Copy link
Contributor

@opwvhk opwvhk commented Jul 9, 2024

What is the purpose of the change

AVRO-4016: Use SecureRandom for file sync markers

Currently, sync markers are generated using an MD5 hash on a random UUID and a timestamp, but the spec simply requires a "16-byte, randomly-generated sync marker".

This change creates just that.

Verifying this change

To verify, all existing tests must continue working.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added the Java Pull Requests for Java binding label Jul 9, 2024
@opwvhk opwvhk merged commit 25d8684 into apache:main Jul 11, 2024
8 checks passed
@opwvhk opwvhk deleted the AVRO-4016-DataFileWriter-sync-without-MD5 branch July 11, 2024 06:41
opwvhk added a commit to opwvhk/avro that referenced this pull request Jul 11, 2024
opwvhk added a commit to opwvhk/avro that referenced this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Pull Requests for Java binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants