You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "jtuglu-netflix (via GitHub)" <gi...@apache.org> on 2024/10/28 18:49:46 UTC
[PR] Add datasegment copier interface and s3 impl (druid)
jtuglu-netflix opened a new pull request, #17430:
URL: https://github.com/apache/druid/pull/17430
<!-- Thanks for trying to help us make Apache Druid be the best it can be! Please fill out as much of the following information as is possible (where relevant, and remove it when irrelevant) to help make the intention and scope of this PR clear in order to ease review. -->
<!-- Please read the doc for contribution (https://github.com/apache/druid/blob/master/CONTRIBUTING.md) before making this PR. Also, once you open a PR, please _avoid using force pushes and rebasing_ since these make it difficult for reviewers to see what you've changed in response to their reviews. See [the 'If your pull request shows conflicts with master' section](https://github.com/apache/druid/blob/master/CONTRIBUTING.md#if-your-pull-request-shows-conflicts-with-master) for more details. -->
Fixes #XXXX.
<!-- Replace XXXX with the id of the issue fixed in this PR. Remove this section if there is no corresponding issue. Don't reference the issue in the title of this pull-request. -->
<!-- If you are a committer, follow the PR action item checklist for committers:
https://github.com/apache/druid/blob/master/dev/committer-instructions.md#pr-and-issue-action-item-checklist-for-committers. -->
### Description
<!-- Describe the goal of this PR, what problem are you fixing. If there is a corresponding issue (referenced above), it's not necessary to repeat the description here, however, you may choose to keep one summary sentence. -->
<!-- Describe your patch: what did you change in code? How did you fix the problem? -->
<!-- If there are several relatively logically separate changes in this PR, create a mini-section for each of them. For example: -->
#### Fixed the bug ...
#### Renamed the class ...
#### Added a forbidden-apis entry ...
<!--
In each section, please describe design decisions made, including:
- Choice of algorithms
- Behavioral aspects. What configuration values are acceptable? How are corner cases and error conditions handled, such as when there are insufficient resources?
- Class organization and design (how the logic is split between classes, inheritance, composition, design patterns)
- Method organization and design (how the logic is split between methods, parameters and return types)
- Naming (class, method, API, configuration, HTTP endpoint, names of emitted metrics)
-->
<!-- It's good to describe an alternative design (or mention an alternative name) for every design (or naming) decision point and compare the alternatives with the designs that you've implemented (or the names you've chosen) to highlight the advantages of the chosen designs and names. -->
<!-- If there was a discussion of the design of the feature implemented in this PR elsewhere (e. g. a "Proposal" issue, any other issue, or a thread in the development mailing list), link to that discussion from this PR description and explain what have changed in your final design compared to your original proposal or the consensus version in the end of the discussion. If something hasn't changed since the original discussion, you can omit a detailed discussion of those aspects of the design here, perhaps apart from brief mentioning for the sake of readability of this PR description. -->
<!-- Some of the aspects mentioned above may be omitted for simple and small changes. -->
#### Release note
<!-- Give your best effort to summarize your changes in a couple of sentences aimed toward Druid users.
If your change doesn't have end user impact, you can skip this section.
For tips about how to write a good release note, see [Release notes](https://github.com/apache/druid/blob/master/CONTRIBUTING.md#release-notes).
-->
<hr>
##### Key changed/added classes in this PR
* `MyFoo`
* `OurBar`
* `TheirBaz`
<hr>
<!-- Check the items by putting "x" in the brackets for the done things. Not all of these items apply to every PR. Remove the items which are not done or not relevant to the PR. None of the items from the checklist below are strictly necessary, but it would be very helpful if you at least self-review the PR. -->
This PR has:
- [ ] been self-reviewed.
- [ ] using the [concurrency checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md) (Remove this item if the PR doesn't have any relation to concurrency.)
- [ ] added documentation for new or modified features or behaviors.
- [ ] a release note entry in the PR description.
- [ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
- [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
- [ ] added integration tests.
- [ ] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [PR] Add datasegment copier interface and s3 impl (druid)
Posted by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org>.
github-advanced-security[bot] commented on code in PR #17430:
URL: https://github.com/apache/druid/pull/17430#discussion_r1849638729
##########
extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3TestUtils.java:
##########
@@ -177,4 +193,132 @@
objectSummary.setSize(CONTENT.length);
return objectSummary;
}
+
+ public static class MockAmazonS3Client extends ServerSideEncryptingAmazonS3
+ {
+ Map<String, Set<String>> storage = new HashMap<>();
+ boolean copied = false;
+ boolean deletedOld = false;
+ Optional<Boolean> usedTransferManager = Optional.absent();
+
+ MockAmazonS3Client()
+ {
+ super(new AmazonS3Client(), new NoopServerSideEncryption());
Review Comment:
## Deprecated method or constructor invocation
Invoking [AmazonS3Client.AmazonS3Client](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/8468)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [PR] Add datasegment copier interface and s3 impl (druid)
Posted by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org>.
github-advanced-security[bot] commented on code in PR #17430:
URL: https://github.com/apache/druid/pull/17430#discussion_r1821883514
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3DataSegmentTransferUtility.java:
##########
@@ -0,0 +1,237 @@
+package org.apache.druid.storage.s3;
+
+import com.amazonaws.AmazonServiceException;
+import com.amazonaws.services.s3.model.CopyObjectRequest;
+import com.amazonaws.services.s3.model.ListObjectsV2Request;
+import com.amazonaws.services.s3.model.ListObjectsV2Result;
+import com.amazonaws.services.s3.model.S3ObjectSummary;
+import com.amazonaws.services.s3.model.StorageClass;
+import com.google.common.base.Predicate;
+import com.google.common.base.Supplier;
+import com.google.common.base.Throwables;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.Maps;
+import org.apache.druid.java.util.common.IOE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.java.util.common.RetryUtils;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.segment.loading.DataSegmentPusher;
+import org.apache.druid.segment.loading.SegmentLoadingException;
+import org.apache.druid.timeline.DataSegment;
+
+import java.io.IOException;
+import java.util.Map;
+
+public abstract class S3DataSegmentTransferUtility
+{
+ private final Supplier<ServerSideEncryptingAmazonS3> s3ClientSupplier;
+ private final S3DataSegmentPusherConfig config;
+
+ public S3DataSegmentTransferUtility(
+ S3DataSegmentPusherConfig config,
+ Supplier<ServerSideEncryptingAmazonS3> s3ClientSupplier
+ )
+ {
+ this.config = config;
+ this.s3ClientSupplier = s3ClientSupplier;
+ }
+
+ protected DataSegment transfer(DataSegment segment, Map<String, Object> targetLoadSpec, boolean deleteSource) throws SegmentLoadingException
+ {
+ try {
+ Map<String, Object> loadSpec = segment.getLoadSpec();
+ String s3Bucket = MapUtils.getString(loadSpec, "bucket");
+ String s3Path = MapUtils.getString(loadSpec, "key");
+
+ final String targetS3Bucket = MapUtils.getString(targetLoadSpec, "bucket");
+ final String targetS3BaseKey = MapUtils.getString(targetLoadSpec, "baseKey");
+
+ final String targetS3Path = S3Utils.constructSegmentPath(
+ targetS3BaseKey,
+ DataSegmentPusher.getDefaultStorageDir(segment, false)
+ );
+
+ if (targetS3Bucket.isEmpty()) {
+ throw new SegmentLoadingException("Target S3 bucket is not specified");
+ }
+ if (targetS3Path.isEmpty()) {
+ throw new SegmentLoadingException("Target S3 baseKey is not specified");
+ }
+
+ safeTransfer(s3Bucket, s3Path, targetS3Bucket, targetS3Path, deleteSource);
+
+ return segment.withLoadSpec(
+ ImmutableMap.<String, Object>builder()
+ .putAll(
+ Maps.filterKeys(
+ loadSpec,
+ new Predicate<String>()
+ {
+ @Override
+ public boolean apply(String input)
+ {
+ return !("bucket".equals(input) || "key".equals(input));
+ }
+ }
+ )
+ )
+ .put("bucket", targetS3Bucket)
+ .put("key", targetS3Path)
+ .build()
+ );
+ }
+ catch (AmazonServiceException e) {
+ throw new SegmentLoadingException(e, "Unable to transfer segment[%s]: [%s]", segment.getId(), e);
+ }
+ }
+
+ private void safeTransfer(
+ final String s3Bucket,
+ final String s3Path,
+ final String targetS3Bucket,
+ final String targetS3Path,
+ final boolean deleteSource
+ ) throws SegmentLoadingException
+ {
+ try {
+ S3Utils.retryS3Operation(
+ () -> {
+ final String copyMsg = StringUtils.format(
+ "[s3://%s/%s] to [s3://%s/%s]",
+ s3Bucket,
+ s3Path,
+ targetS3Bucket,
+ targetS3Path
+ );
+ try {
+ selfCheckingTransfer(s3Bucket, targetS3Bucket, s3Path, targetS3Path, copyMsg, deleteSource);
+ return null;
+ }
+ catch (AmazonServiceException | IOException | SegmentLoadingException e) {
+ log().info(e, "Error while trying to transfer " + copyMsg);
+ throw e;
+ }
+ }
+ );
+ }
+ catch (Exception e) {
+ Throwables.propagateIfInstanceOf(e, AmazonServiceException.class);
Review Comment:
## Deprecated method or constructor invocation
Invoking [Throwables.propagateIfInstanceOf](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/8441)
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3DataSegmentTransferUtility.java:
##########
@@ -0,0 +1,237 @@
+package org.apache.druid.storage.s3;
+
+import com.amazonaws.AmazonServiceException;
+import com.amazonaws.services.s3.model.CopyObjectRequest;
+import com.amazonaws.services.s3.model.ListObjectsV2Request;
+import com.amazonaws.services.s3.model.ListObjectsV2Result;
+import com.amazonaws.services.s3.model.S3ObjectSummary;
+import com.amazonaws.services.s3.model.StorageClass;
+import com.google.common.base.Predicate;
+import com.google.common.base.Supplier;
+import com.google.common.base.Throwables;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.Maps;
+import org.apache.druid.java.util.common.IOE;
+import org.apache.druid.java.util.common.ISE;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.java.util.common.RetryUtils;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.logger.Logger;
+import org.apache.druid.segment.loading.DataSegmentPusher;
+import org.apache.druid.segment.loading.SegmentLoadingException;
+import org.apache.druid.timeline.DataSegment;
+
+import java.io.IOException;
+import java.util.Map;
+
+public abstract class S3DataSegmentTransferUtility
+{
+ private final Supplier<ServerSideEncryptingAmazonS3> s3ClientSupplier;
+ private final S3DataSegmentPusherConfig config;
+
+ public S3DataSegmentTransferUtility(
+ S3DataSegmentPusherConfig config,
+ Supplier<ServerSideEncryptingAmazonS3> s3ClientSupplier
+ )
+ {
+ this.config = config;
+ this.s3ClientSupplier = s3ClientSupplier;
+ }
+
+ protected DataSegment transfer(DataSegment segment, Map<String, Object> targetLoadSpec, boolean deleteSource) throws SegmentLoadingException
+ {
+ try {
+ Map<String, Object> loadSpec = segment.getLoadSpec();
+ String s3Bucket = MapUtils.getString(loadSpec, "bucket");
+ String s3Path = MapUtils.getString(loadSpec, "key");
+
+ final String targetS3Bucket = MapUtils.getString(targetLoadSpec, "bucket");
+ final String targetS3BaseKey = MapUtils.getString(targetLoadSpec, "baseKey");
+
+ final String targetS3Path = S3Utils.constructSegmentPath(
+ targetS3BaseKey,
+ DataSegmentPusher.getDefaultStorageDir(segment, false)
+ );
+
+ if (targetS3Bucket.isEmpty()) {
+ throw new SegmentLoadingException("Target S3 bucket is not specified");
+ }
+ if (targetS3Path.isEmpty()) {
+ throw new SegmentLoadingException("Target S3 baseKey is not specified");
+ }
+
+ safeTransfer(s3Bucket, s3Path, targetS3Bucket, targetS3Path, deleteSource);
+
+ return segment.withLoadSpec(
+ ImmutableMap.<String, Object>builder()
+ .putAll(
+ Maps.filterKeys(
+ loadSpec,
+ new Predicate<String>()
+ {
+ @Override
+ public boolean apply(String input)
+ {
+ return !("bucket".equals(input) || "key".equals(input));
+ }
+ }
+ )
+ )
+ .put("bucket", targetS3Bucket)
+ .put("key", targetS3Path)
+ .build()
+ );
+ }
+ catch (AmazonServiceException e) {
+ throw new SegmentLoadingException(e, "Unable to transfer segment[%s]: [%s]", segment.getId(), e);
+ }
+ }
+
+ private void safeTransfer(
+ final String s3Bucket,
+ final String s3Path,
+ final String targetS3Bucket,
+ final String targetS3Path,
+ final boolean deleteSource
+ ) throws SegmentLoadingException
+ {
+ try {
+ S3Utils.retryS3Operation(
+ () -> {
+ final String copyMsg = StringUtils.format(
+ "[s3://%s/%s] to [s3://%s/%s]",
+ s3Bucket,
+ s3Path,
+ targetS3Bucket,
+ targetS3Path
+ );
+ try {
+ selfCheckingTransfer(s3Bucket, targetS3Bucket, s3Path, targetS3Path, copyMsg, deleteSource);
+ return null;
+ }
+ catch (AmazonServiceException | IOException | SegmentLoadingException e) {
+ log().info(e, "Error while trying to transfer " + copyMsg);
+ throw e;
+ }
+ }
+ );
+ }
+ catch (Exception e) {
+ Throwables.propagateIfInstanceOf(e, AmazonServiceException.class);
+ Throwables.propagateIfInstanceOf(e, SegmentLoadingException.class);
Review Comment:
## Deprecated method or constructor invocation
Invoking [Throwables.propagateIfInstanceOf](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/8442)
##########
extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3DataSegmentCopierTest.java:
##########
@@ -0,0 +1,290 @@
+/*
+ * 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.druid.storage.s3;
+
+import com.amazonaws.services.s3.AmazonS3Client;
+import com.amazonaws.services.s3.model.AccessControlList;
+import com.amazonaws.services.s3.model.AmazonS3Exception;
+import com.amazonaws.services.s3.model.CanonicalGrantee;
+import com.amazonaws.services.s3.model.CopyObjectRequest;
+import com.amazonaws.services.s3.model.CopyObjectResult;
+import com.amazonaws.services.s3.model.Grant;
+import com.amazonaws.services.s3.model.ListObjectsV2Request;
+import com.amazonaws.services.s3.model.ListObjectsV2Result;
+import com.amazonaws.services.s3.model.Owner;
+import com.amazonaws.services.s3.model.Permission;
+import com.amazonaws.services.s3.model.PutObjectResult;
+import com.amazonaws.services.s3.model.S3ObjectSummary;
+import com.amazonaws.services.s3.model.StorageClass;
+import com.google.common.base.Suppliers;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import org.apache.druid.java.util.common.Intervals;
+import org.apache.druid.java.util.common.MapUtils;
+import org.apache.druid.segment.loading.SegmentLoadingException;
+import org.apache.druid.timeline.DataSegment;
+import org.apache.druid.timeline.partition.NoneShardSpec;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.File;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+public class S3DataSegmentCopierTest
+{
+ private static final DataSegment SOURCE_SEGMENT = new DataSegment(
+ "test",
+ Intervals.of("2013-01-01/2013-01-02"),
+ "1",
+ ImmutableMap.of(
+ "key",
+ "baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip",
+ "bucket",
+ "main"
+ ),
+ ImmutableList.of("dim1", "dim1"),
+ ImmutableList.of("metric1", "metric2"),
+ NoneShardSpec.instance(),
+ 0,
+ 1
+ );
+
+ @Test
+ public void testCopy() throws Exception
+ {
+ MockAmazonS3Client mockS3Client = new MockAmazonS3Client();
+ S3DataSegmentCopier copier = new S3DataSegmentCopier(
+ Suppliers.ofInstance(mockS3Client),
+ new S3DataSegmentPusherConfig()
+ );
+
+ mockS3Client.putObject(
+ "main",
+ "baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip"
+ );
+
+ DataSegment copiedSegment = copier.copy(
+ SOURCE_SEGMENT,
+ ImmutableMap.of("baseKey", "targetBaseKey", "bucket", "archive")
+ );
+
+ Map<String, Object> targetLoadSpec = copiedSegment.getLoadSpec();
+ Assert.assertEquals(
+ "targetBaseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip",
+ MapUtils.getString(targetLoadSpec, "key")
+ );
+ Assert.assertEquals("archive", MapUtils.getString(targetLoadSpec, "bucket"));
+ Assert.assertTrue(mockS3Client.didCopy());
+ }
+
+ @Test
+ public void testCopyNoop() throws Exception
+ {
+ MockAmazonS3Client mockS3Client = new MockAmazonS3Client();
+ S3DataSegmentCopier copier = new S3DataSegmentCopier(
+ Suppliers.ofInstance(mockS3Client),
+ new S3DataSegmentPusherConfig()
+ );
+
+ mockS3Client.putObject(
+ "archive",
+ "targetBaseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip"
+ );
+
+ DataSegment copiedSegment = copier.copy(
+ SOURCE_SEGMENT,
+ ImmutableMap.of("baseKey", "targetBaseKey", "bucket", "archive")
+ );
+
+ Map<String, Object> targetLoadSpec = copiedSegment.getLoadSpec();
+
+ Assert.assertEquals(
+ "targetBaseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip",
+ MapUtils.getString(targetLoadSpec, "key")
+ );
+ Assert.assertEquals("archive", MapUtils.getString(targetLoadSpec, "bucket"));
+ Assert.assertFalse(mockS3Client.didCopy());
+ }
+
+ @Test(expected = SegmentLoadingException.class)
+ public void testCopyException() throws Exception
+ {
+ MockAmazonS3Client mockS3Client = new MockAmazonS3Client();
+ S3DataSegmentCopier copier = new S3DataSegmentCopier(
+ Suppliers.ofInstance(mockS3Client),
+ new S3DataSegmentPusherConfig()
+ );
+
+ copier.copy(
+ SOURCE_SEGMENT,
+ ImmutableMap.of("baseKey", "targetBaseKey", "bucket", "archive")
+ );
+ }
+
+ @Test
+ public void testIgnoresGoneButAlreadyCopied() throws Exception
+ {
+ MockAmazonS3Client mockS3Client = new MockAmazonS3Client();
+ S3DataSegmentCopier copier = new S3DataSegmentCopier(
+ Suppliers.ofInstance(mockS3Client),
+ new S3DataSegmentPusherConfig()
+ );
+ copier.copy(new DataSegment(
+ "test",
+ Intervals.of("2013-01-01/2013-01-02"),
+ "1",
+ ImmutableMap.of(
+ "key",
+ "baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip",
+ "bucket",
+ "DOES NOT EXIST"
+ ),
+ ImmutableList.of("dim1", "dim1"),
+ ImmutableList.of("metric1", "metric2"),
+ NoneShardSpec.instance(),
+ 0,
+ 1
+ ), ImmutableMap.of("bucket", "DOES NOT EXIST", "baseKey", "baseKey"));
+ }
+
+ @Test(expected = SegmentLoadingException.class)
+ public void testFailsToCopyMissing() throws Exception
+ {
+ MockAmazonS3Client mockS3Client = new MockAmazonS3Client();
+ S3DataSegmentCopier copier = new S3DataSegmentCopier(
+ Suppliers.ofInstance(mockS3Client),
+ new S3DataSegmentPusherConfig()
+ );
+ copier.copy(new DataSegment(
+ "test",
+ Intervals.of("2013-01-01/2013-01-02"),
+ "1",
+ ImmutableMap.of(
+ "key",
+ "baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip",
+ "bucket",
+ "DOES NOT EXIST"
+ ),
+ ImmutableList.of("dim1", "dim1"),
+ ImmutableList.of("metric1", "metric2"),
+ NoneShardSpec.instance(),
+ 0,
+ 1
+ ), ImmutableMap.of("bucket", "DOES NOT EXIST", "baseKey", "baseKey2"));
+ }
+
+ private static class MockAmazonS3Client extends ServerSideEncryptingAmazonS3
+ {
+ Map<String, Set<String>> storage = new HashMap<>();
+ boolean copied = false;
+ boolean deletedOld = false;
+
+ private MockAmazonS3Client()
+ {
+ super(new AmazonS3Client(), new NoopServerSideEncryption());
Review Comment:
## Deprecated method or constructor invocation
Invoking [AmazonS3Client.AmazonS3Client](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/8443)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [PR] Add datasegment copier interface and s3 impl (druid)
Posted by "jtuglu1 (via GitHub)" <gi...@apache.org>.
jtuglu1 closed pull request #17430: Add datasegment copier interface and s3 impl
URL: https://github.com/apache/druid/pull/17430
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [PR] Add datasegment copier interface and s3 impl (druid)
Posted by "kfaraz (via GitHub)" <gi...@apache.org>.
kfaraz commented on PR #17430:
URL: https://github.com/apache/druid/pull/17430#issuecomment-2443211701
Thanks for the PR @jtuglu-netflix !
Could you share some details on how you plan to use this feature?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org