public class AuthoritativeAuditOperation extends AbstractStoreOperation
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthoritativeAuditOperation.NonAuthoritativeDirException
A directory was found which was non-authoritative.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
E_NONAUTH
Exception error string: "Directory is not marked as authoritative in the S3Guard store".
|
static int |
ERROR_ENTRY_NOT_AUTH_IN_DDB
Exception error code when a path is non-auth in the DB}.
|
static int |
ERROR_PATH_NOT_AUTH_IN_FS
Exception error code when a path is not configured to be
auth in the S3A FS Config: 5.
|
| Constructor and Description |
|---|
AuthoritativeAuditOperation(StoreContext storeContext,
DynamoDBMetadataStore metastore,
boolean requireAuthoritative,
boolean verbose)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.lang3.tuple.Pair<Integer,Integer> |
audit(org.apache.hadoop.fs.Path path)
Audit the tree.
|
activateAuditSpan, getAuditSpan, getStoreContextpublic static final int ERROR_ENTRY_NOT_AUTH_IN_DDB
public static final int ERROR_PATH_NOT_AUTH_IN_FS
public static final String E_NONAUTH
public AuthoritativeAuditOperation(StoreContext storeContext, DynamoDBMetadataStore metastore, boolean requireAuthoritative, boolean verbose)
storeContext - store context.metastore - metastorerequireAuthoritative - require all directories to be authoritativeverbose - verbose outputpublic org.apache.commons.lang3.tuple.Pair<Integer,Integer> audit(org.apache.hadoop.fs.Path path) throws IOException
path - qualified path to scanIOException - IO failureExitUtil.ExitException - if a non-auth dir was found.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.