HADOOP-16682. ABFS: Removing unnecessary toString() invocations
- Contributed by Bilahari T H Change-Id: Id55495b44d81533d1d3654de2553c709f505f7eb
This commit is contained in:
parent
187b161c20
commit
e01852181a
|
@ -271,9 +271,9 @@ public class AzureBlobFileSystem extends FileSystem {
|
|||
}
|
||||
|
||||
public boolean rename(final Path src, final Path dst) throws IOException {
|
||||
LOG.debug(
|
||||
"AzureBlobFileSystem.rename src: {} dst: {}", src.toString(), dst.toString());
|
||||
LOG.debug("AzureBlobFileSystem.rename src: {} dst: {}", src, dst);
|
||||
statIncrement(CALL_RENAME);
|
||||
|
||||
trailingPeriodCheck(dst);
|
||||
|
||||
Path parentFolder = src.getParent();
|
||||
|
@ -777,7 +777,7 @@ public class AzureBlobFileSystem extends FileSystem {
|
|||
@Override
|
||||
public void modifyAclEntries(final Path path, final List<AclEntry> aclSpec)
|
||||
throws IOException {
|
||||
LOG.debug("AzureBlobFileSystem.modifyAclEntries path: {}", path.toString());
|
||||
LOG.debug("AzureBlobFileSystem.modifyAclEntries path: {}", path);
|
||||
|
||||
if (!getIsNamespaceEnabled()) {
|
||||
throw new UnsupportedOperationException(
|
||||
|
@ -926,7 +926,7 @@ public class AzureBlobFileSystem extends FileSystem {
|
|||
*/
|
||||
@Override
|
||||
public AclStatus getAclStatus(final Path path) throws IOException {
|
||||
LOG.debug("AzureBlobFileSystem.getAclStatus path: {}", path.toString());
|
||||
LOG.debug("AzureBlobFileSystem.getAclStatus path: {}", path);
|
||||
|
||||
if (!getIsNamespaceEnabled()) {
|
||||
throw new UnsupportedOperationException(
|
||||
|
|
|
@ -413,8 +413,8 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
client.getFileSystem(),
|
||||
path,
|
||||
overwrite,
|
||||
permission.toString(),
|
||||
umask.toString(),
|
||||
permission,
|
||||
umask,
|
||||
isNamespaceEnabled);
|
||||
|
||||
String relativePath = getRelativePath(path);
|
||||
|
@ -850,7 +850,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"setOwner filesystem: {} path: {} owner: {} group: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString(),
|
||||
path,
|
||||
owner,
|
||||
group);
|
||||
|
||||
|
@ -877,8 +877,8 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"setPermission filesystem: {} path: {} permission: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString(),
|
||||
permission.toString());
|
||||
path,
|
||||
permission);
|
||||
|
||||
final AbfsRestOperation op = client.setPermission(getRelativePath(path),
|
||||
String.format(AbfsHttpConstants.PERMISSION_FORMAT, permission.toOctal()));
|
||||
|
@ -899,7 +899,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"modifyAclEntries filesystem: {} path: {} aclSpec: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString(),
|
||||
path,
|
||||
AclEntry.aclSpecToString(aclSpec));
|
||||
|
||||
identityTransformer.transformAclEntriesForSetRequest(aclSpec);
|
||||
|
@ -940,7 +940,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"removeAclEntries filesystem: {} path: {} aclSpec: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString(),
|
||||
path,
|
||||
AclEntry.aclSpecToString(aclSpec));
|
||||
|
||||
identityTransformer.transformAclEntriesForSetRequest(aclSpec);
|
||||
|
@ -981,7 +981,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"removeDefaultAcl filesystem: {} path: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString());
|
||||
path);
|
||||
|
||||
String relativePath = getRelativePath(path);
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"removeAcl filesystem: {} path: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString());
|
||||
path);
|
||||
|
||||
String relativePath = getRelativePath(path);
|
||||
|
||||
|
@ -1062,7 +1062,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"setAcl filesystem: {} path: {} aclspec: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString(),
|
||||
path,
|
||||
AclEntry.aclSpecToString(aclSpec));
|
||||
|
||||
identityTransformer.transformAclEntriesForSetRequest(aclSpec);
|
||||
|
@ -1103,7 +1103,7 @@ public class AzureBlobFileSystemStore implements Closeable {
|
|||
LOG.debug(
|
||||
"getAclStatus filesystem: {} path: {}",
|
||||
client.getFileSystem(),
|
||||
path.toString());
|
||||
path);
|
||||
|
||||
AbfsRestOperation op = client.getAclStatus(getRelativePath(path));
|
||||
AbfsHttpOperation result = op.getResult();
|
||||
|
|
Loading…
Reference in New Issue