Skip to content

Commit

Permalink
Fix RequestIdentifier NPE in TestMultipartObjectGet
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Jan 21, 2025
1 parent 880f34a commit 33e3032
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.hadoop.hdds.utils.IOUtils;
import org.apache.hadoop.ozone.client.OzoneClient;
import org.apache.hadoop.ozone.om.OzoneManager;
import org.apache.hadoop.ozone.s3.RequestIdentifier;
import org.apache.hadoop.ozone.s3.endpoint.CompleteMultipartUploadRequest;
import org.apache.hadoop.ozone.s3.endpoint.CompleteMultipartUploadResponse;
import org.apache.hadoop.ozone.s3.endpoint.MultipartUploadInitiateResponse;
Expand Down Expand Up @@ -98,6 +99,7 @@ public static void init() throws Exception {
REST.setClient(client);
REST.setOzoneConfiguration(conf);
REST.setContext(context);
REST.setRequestIdentifier(new RequestIdentifier());
S3GatewayMetrics.create(conf);
}

Expand Down

0 comments on commit 33e3032

Please sign in to comment.