Skip to content

Conversation

@hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

As part of change #3912 and #4448, isFile parameter was added to OmKeyInfo and OzoneKey but it was not set when new create file gets created it doesn't exist here.

This change is to set isFile on createFile code path so that it can properly identify if key is file or dir.

What is the link to the Apache JIRA

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

How was this patch tested?

Updated unit tests.

@hemantk-12 hemantk-12 changed the title Set isFile when creating OmKeyInfo for createFile code path HDDS-9072. Set isFile when creating OmKeyInfo for createFile code path Jul 24, 2023
Copy link
Contributor

@prashantpogde prashantpogde left a comment

Choose a reason for hiding this comment

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

This is a good catch. Thanks for the PR @hemantk-12

Copy link
Member

@aswinshakil aswinshakil 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 the ptch. LGTM. Pending CI

Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

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

+1 pending CI

@smengcl smengcl merged commit 1b795f5 into apache:master Jul 26, 2023
@smengcl
Copy link
Contributor

smengcl commented Jul 26, 2023

Thanks @hemantk-12 for the patch. Thanks @aswinshakil @prashantpogde for reviewing it.

jojochuang pushed a commit to jojochuang/ozone that referenced this pull request Feb 1, 2024
…ile code path (apache#5108)

(cherry picked from commit 1b795f5)
Change-Id: I83e4230b27007e64cbaed03350c9e99c91c33a06
@hemantk-12 hemantk-12 deleted the HDDS-9072 branch October 28, 2024 18:41
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.

4 participants