-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-12870. Fix listObjects corner cases #8307
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6f61f55
HDDS-12870. Add maxKey validation for S3 listObjects function
Jimmyweng006 365c67b
HDDS-12870. Unit test for maxKey validation of S3 listObjects function
Jimmyweng006 7bd5677
HDDS-12870. Integration test for maxKey validation of S3 listObjects …
Jimmyweng006 19f7ba5
HDDS-12870. Fix checkstyle and add Apache License header
Jimmyweng006 f283cc0
HDDS-12870. Add smoke test for maxKey validation in S3 listObjects fu…
Jimmyweng006 5035f36
HDDS-12870. Simplify new exception syntax in validateMaxKeys
Jimmyweng006 7611798
HDDS-12870. Add maxkeys_validation robot test into compatbility_check…
Jimmyweng006 228bacd
Revert "HDDS-12870. Fix checkstyle and add Apache License header"
Jimmyweng006 a4e074d
Revert "HDDS-12870. Integration test for maxKey validation of S3 list…
Jimmyweng006 beffb26
HDDS-12870. Fix for check style
Jimmyweng006 c8d7db3
HDDS-12870. Make maxKeysLimit configurable
Jimmyweng006 7e2d5d4
HDDS-12870. Add robot tests for testing max-keys is lower or higher t…
Jimmyweng006 ab8092b
HDDS-12870. Set default maxKeysLimit to avoid uninitialized value in …
Jimmyweng006 edcb530
HDDS-12870. Check Contents length using jq with temp file to avoid JS…
Jimmyweng006 93f6cb8
HDDS-12870. Make robot test name more general
Jimmyweng006 ff1408f
Merge remote-tracking branch 'origin/master' into HDDS-12870
Jimmyweng006 aaf2783
HDDS-12870. Add unit test to verify max-keys limit is configurable an…
Jimmyweng006 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ne/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpointBuilder.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hadoop.ozone.s3.endpoint; | ||
|
|
||
| /** | ||
| * Builder for BucketEndpoint in tests. | ||
| */ | ||
| public class BucketEndpointBuilder extends | ||
| EndpointBuilder<BucketEndpoint> { | ||
|
|
||
| public BucketEndpointBuilder() { | ||
| super(BucketEndpoint::new); | ||
| } | ||
|
|
||
| @Override | ||
| public BucketEndpoint build() { | ||
| BucketEndpoint endpoint = super.build(); | ||
| endpoint.setOzoneConfiguration(getConfig()); | ||
|
|
||
| return endpoint; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok, but my original thought is just want this to be a very low value, like 10, so we don't need to create too much key in test.