HADOOP-15827. NPE in DynamoDBMetadataStore.lambda$listChildren for root + auth S3Guard.
Contributed by Gabor Bota
This commit is contained in:
parent
d4626b4d18
commit
7ba1cfdea7
@ -630,7 +630,7 @@ public DirListingMetadata listChildren(final Path path) throws IOException {
|
|||||||
LOG.trace("Listing table {} in region {} for {} returning {}",
|
LOG.trace("Listing table {} in region {} for {} returning {}",
|
||||||
tableName, region, path, metas);
|
tableName, region, path, metas);
|
||||||
|
|
||||||
return (metas.isEmpty() && dirPathMeta == null)
|
return (metas.isEmpty() || dirPathMeta == null)
|
||||||
? null
|
? null
|
||||||
: new DirListingMetadata(path, metas, isAuthoritative,
|
: new DirListingMetadata(path, metas, isAuthoritative,
|
||||||
dirPathMeta.getLastUpdated());
|
dirPathMeta.getLastUpdated());
|
||||||
|
Loading…
Reference in New Issue
Block a user