Skip to content

Comments

HDDS-9762. Fix dfs s3a protocol for FSO bucket.#5735

Merged
ChenSammi merged 2 commits intoapache:masterfrom
ashishkumar50:HDDS-9762
Dec 7, 2023
Merged

HDDS-9762. Fix dfs s3a protocol for FSO bucket.#5735
ChenSammi merged 2 commits intoapache:masterfrom
ashishkumar50:HDDS-9762

Conversation

@ashishkumar50
Copy link
Contributor

What changes were proposed in this pull request?

There are two problem which is handled in this PR

  1. Handle NPE in OzoneBucket as startKey doesn't accept NULL value, which impacts LightWeight ListKeys API (Using Lightweight API introduced in HDDS-8773).
  2. After HDDS-8773 fix, it just query the shallow list keys, Because of this in this case if key doesn't exist KEY_NOT_FOUND exception is getting thrown in BucketEnd Point, which in turn throw exception to s3api.
    But in case if key not found case also, it should return normal response with 0 keycount to s3api.

What is the link to the Apache JIRA

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

How was this patch tested?

Manually verified

@ashishkumar50
Copy link
Contributor Author

@ChenSammi @sadanand48 @tanvipenumudy Can you please take a look.

@mladjan-gadzic
Copy link
Contributor

mladjan-gadzic commented Dec 5, 2023

I did manual tests as well, and I can confirm that these changes fix FileAlreadyExistsException for https://issues.apache.org/jira/browse/HDDS-9762. Thank you @ashishkumar50 for working on this!

Copy link
Contributor

@tanvipenumudy tanvipenumudy left a comment

Choose a reason for hiding this comment

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

Thank you @ashishkumar50, the changes look good to me.

Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

Thanks @ashishkumar50 for fixing this.

@ChenSammi ChenSammi merged commit 751feb4 into apache:master Dec 7, 2023
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.

5 participants