File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed
hadoop-tools/hadoop-aws/src
main/java/org/apache/hadoop/fs/s3a
test/java/org/apache/hadoop/fs/s3a Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -1306,21 +1306,6 @@ private AmazonS3 getAmazonS3Client() {
13061306 return s3 ;
13071307 }
13081308
1309- /**
1310- * Returns the S3 client used by this filesystem.
1311- * <i>Warning: this must only be used for testing, as it bypasses core
1312- * S3A operations. </i>
1313- * @param reason a justification for requesting access.
1314- * @return AmazonS3Client
1315- */
1316- // TODO: Remove when we remove S3V1 client
1317- @ VisibleForTesting
1318- public AmazonS3 getAmazonS3ClientForTesting (String reason ) {
1319- LOG .warn ("Access to S3A client requested, reason {}" , reason );
1320- V2Migration .v1S3ClientRequested ();
1321- return s3 ;
1322- }
1323-
13241309 /**
13251310 * Returns the S3 client used by this filesystem.
13261311 * <i>Warning: this must only be used for testing, as it bypasses core
Original file line number Diff line number Diff line change 2020
2121import static org .apache .hadoop .fs .s3a .Constants .*;
2222
23- import com .amazonaws .services .s3 .AmazonS3 ;
24-
2523import java .net .URI ;
2624
2725import org .apache .hadoop .conf .Configuration ;
@@ -55,7 +53,6 @@ public abstract class AbstractS3AMockTest {
5553 public ExpectedException exception = ExpectedException .none ();
5654
5755 protected S3AFileSystem fs ;
58- protected AmazonS3 s3 ;
5956 protected S3Client s3V2 ;
6057
6158 @ Before
@@ -66,7 +63,6 @@ public void setup() throws Exception {
6663 // unset S3CSE property from config to avoid pathIOE.
6764 conf .unset (Constants .S3_ENCRYPTION_ALGORITHM );
6865 fs .initialize (uri , conf );
69- s3 = fs .getAmazonS3ClientForTesting ("mocking" );
7066 s3V2 = fs .getAmazonS3V2ClientForTesting ("mocking" );
7167 }
7268
You can’t perform that action at this time.
0 commit comments