Skip to content

Conversation

@okumin
Copy link
Contributor

@okumin okumin commented Apr 2, 2023

What changes were proposed in this pull request?

Make ObjectEndpoint#get not accept an HTTP request body so that we no longer see the following WARNING.

ozone-s3g-6bd9d99555-lgmsl: WARNING: The following warnings have been detected: WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.hadoop.ozone.s3.endpoint.ObjectEndpoint.get(java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,java.io.InputStream) throws java.io.IOException,org.apache.hadoop.ozone.s3.exception.OS3Exception, should not consume any entity. 

What is the link to the Apache JIRA

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

How was this patch tested?

I verified we never observe the warning the master branch with this patch.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @okumin for the patch. Please enable the build-branch workflow in your fork to get CI feedback for your change.

@okumin okumin changed the title HDDS-8354: Avoid WARNING about ObjectEndpoint#get HDDS-8354. Avoid WARNING about ObjectEndpoint#get Apr 2, 2023
@okumin
Copy link
Contributor Author

okumin commented Apr 2, 2023

@adoroszlai Thanks and sorry I missed https://github.com/apache/ozone/blob/master/CONTRIBUTING.md.
I enabled the CI action, fixing the checkstyle error.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

I enabled the CI action, fixing the checkstyle error.

Thanks a lot @okumin!

The patch looks good to me, and tests are passing.

@adoroszlai
Copy link
Contributor

@duongkame @kerneltime @xichen01 would you like to take a look?

@adoroszlai adoroszlai added the s3 S3 Gateway label Apr 3, 2023
@kerneltime
Copy link
Contributor

cc @tanvipenumudy @SaketaChalamchala @xBis7 can you please take a look?

@kerneltime
Copy link
Contributor

This seems to be the only place we do this. Thanks for the fix!

@adoroszlai adoroszlai merged commit ac42bf0 into apache:master Apr 3, 2023
@okumin okumin deleted the HDDS-8354-get-object branch April 4, 2023 04:20
@okumin
Copy link
Contributor Author

okumin commented Apr 4, 2023

Thanks!

errose28 added a commit to errose28/ozone that referenced this pull request Apr 6, 2023
* master: (155 commits)
  update readme (apache#4535)
  HDDS-8374. Disable flaky unit test: TestContainerStateCounts
  HDDS-8016. updated the ozone doc for linked bucket and deletion async limitation (apache#4526)
  HDDS-8237. [Snapshot] loadDb() used by SstFiltering service creates extraneous directories. (apache#4446)
  HDDS-8035. Intermittent timeout in TestOzoneManagerHAWithData.testOMHAMetrics (apache#4362)
  HDDS-8039. Allow container inspector to run from ozone debug. (apache#4337)
  HDDS-8304. [Snapshot] Reduce flakiness in testSkipTrackingWithZeroSnapshot (apache#4487)
  HDDS-7974. [Snapshot] KeyDeletingService to be aware of Ozone snapshots (apache#4486)
  HDDS-8368. ReplicationManager: Create ContainerReplicaOp with correct target Datanode (apache#4532)
  HDDS-8358. Fix the space usage comparator in ContainerBalancerSelectionCriteria (apache#4527)
  HDDS-8359. ReplicationManager: Fix getContainerReplicationHealth() so that it builds ContainerCheckRequest correctly (apache#4528)
  HDDS-8361. Useless object in TestOzoneBlockTokenIdentifier (apache#4517)
  HDDS-8325. Consolidate and refine RocksDB metrics of services (apache#4506)
  HDDS-8135. Incorrect synchronization during certificate renewal in DefaultCertificateClient. (apache#4381)
  HDDS-8127. Exclude deleted containers from Recon container count (apache#4440)
  HDDS-8364. ReadReplicas may give wrong results with topology-aware read enabled (apache#4522)
  HDDS-8354. Avoid WARNING about ObjectEndpoint#get (apache#4515)
  HDDS-8324. DN data cache gets removed randomly asking for data from disk (apache#4499)
  HDDS-8291. Upgrade to Hadoop 3.3.5 (apache#4484)
  HDDS-8355. Mark TestOMRatisSnapshots#testInstallSnapshot as flaky
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s3 S3 Gateway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants