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

HDDS-10471. [hsync] MockDatanodeStorage.writeChunk should make a copy of byte string. #6334

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

jojochuang
Copy link
Contributor

What changes were proposed in this pull request?

Fix a memory corruption in test utility caused by (potentially unsafe) memory manipulation.

Please describe your PR in detail:
Found in HDDS-10431 (#6286). For some reason it only fails for Linux not Mac.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10471

How was this patch tested?

Unit test.

… of byte string.

Change-Id: Icbe2bdb6e744011a6df3842a5f6019078a516aa9
(cherry picked from commit ef66416)
@jojochuang jojochuang requested a review from smengcl March 5, 2024 23:45
@smengcl
Copy link
Contributor

smengcl commented Mar 6, 2024

@smengcl
Copy link
Contributor

smengcl commented Mar 6, 2024

Thanks @jojochuang for the fix. There is a separate failure on my branch CI above that is likely caused by my merge effort and is unrelated to this PR. Merging this in a minute.

@smengcl smengcl merged commit be5ffc2 into apache:HDDS-7593 Mar 6, 2024
26 checks passed
smengcl pushed a commit to smengcl/hadoop-ozone that referenced this pull request Mar 6, 2024
chungen0126 pushed a commit to chungen0126/ozone that referenced this pull request May 3, 2024
chungen0126 pushed a commit to chungen0126/ozone that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants