Skip to content

Commit 7963bc3

Browse files
committed
HADOOP-18073. update upgrade doc to match final S3AInternals method names
oops Change-Id: I993ccd2418e3f8ec77d967032f10a5a746a6f81b
1 parent 92fd7b1 commit 7963bc3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/aws_sdk_upgrade.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ should seamlessly upgrade. This also means that the same provider list, if restr
145145
those classes, will work across versions.
146146

147147

148-
149148
### `hadoop-aws` credential providers migration to V2
150149

151150
All the fs.s3a credential providers have the same name and functionality as before.
@@ -263,7 +262,7 @@ The `S3ClientFactory` interface has been replaced by one that creates a V2 `S3Cl
263262
* Custom implementations will need to be updated.
264263
* The `InconsistentS3ClientFactory` class has been deleted.
265264

266-
#### `S3AFileSystem` method changes: `S3AInternals`.
265+
### `S3AFileSystem` method changes: `S3AInternals`.
267266

268267
The low-level s3 operations/client accessors have been moved into a new interface,
269268
`org.apache.hadoop.fs.s3a.S3AInternals`, which must be accessed via the
@@ -274,7 +273,7 @@ They have also been updated to return V2 SDK classes.
274273
@InterfaceStability.Unstable
275274
@InterfaceAudience.LimitedPrivate("testing/diagnostics")
276275
public interface S3AInternals {
277-
S3Client getAmazonS3V2ClientForTesting(String reason);
276+
S3Client getAmazonS3V2Client(String reason);
278277

279278
@Retries.RetryTranslated
280279
@AuditEntryPoint
@@ -293,7 +292,7 @@ public interface S3AInternals {
293292
```
294293

295294

296-
##### `S3AFileSystem.getAmazonS3ClientForTesting(String)` moved and return type changed
295+
#### `S3AFileSystem.getAmazonS3ClientForTesting(String)` moved and return type changed
297296

298297
The `S3AFileSystem.getAmazonS3ClientForTesting()` method has been been deleted.
299298

@@ -312,7 +311,7 @@ of the filesystem instance.
312311
```
313312

314313
```java
315-
((S3AFilesystem)fs).getS3AInternals().getAmazonS3ClientForTesting("testing")
314+
((S3AFilesystem)fs).getS3AInternals().getAmazonS3Client("testing")
316315
```
317316

318317
##### `S3AFileSystem.getObjectMetadata(Path path)` moved to `S3AInternals`; return type changed

0 commit comments

Comments
 (0)