HADOOP-16472. findbugs warning on LocalMetadataStore.ttlTimeProvider sync
Contributed by Steve Loughran. Moved the setter and addAncestors to synchronized Change-Id: Ib362c66d1b8c9124eca7db9a44274ac08d0b3be6
This commit is contained in:
parent
e7a0b8aa83
commit
b01efe5cf6
|
@ -605,12 +605,12 @@ public class LocalMetadataStore implements MetadataStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTtlTimeProvider(ITtlTimeProvider ttlTimeProvider) {
|
public synchronized void setTtlTimeProvider(ITtlTimeProvider ttlTimeProvider) {
|
||||||
this.ttlTimeProvider = ttlTimeProvider;
|
this.ttlTimeProvider = ttlTimeProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addAncestors(final Path qualifiedPath,
|
public synchronized void addAncestors(final Path qualifiedPath,
|
||||||
@Nullable final BulkOperationState operationState) throws IOException {
|
@Nullable final BulkOperationState operationState) throws IOException {
|
||||||
|
|
||||||
Collection<PathMetadata> newDirs = new ArrayList<>();
|
Collection<PathMetadata> newDirs = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue