Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,8 @@ private long estimateBucketDataSize(OmBucketInfo bucketInfo) {
DefaultReplicationConfig defRC = bucketInfo.getDefaultReplicationConfig();
final ReplicationConfig rc;
if (defRC == null) {
// Note: A lot of tests are not setting bucket DefaultReplicationConfig,
// sometimes intentionally.
// Fall back to config default and print warning level log.
// Fall back to config default.
rc = ReplicationConfig.getDefault(new OzoneConfiguration());
LOG.warn("DefaultReplicationConfig is not correctly set in " +
"OmBucketInfo for volume '{}' bucket '{}'. " +
"Falling back to config default '{}'",
bucketInfo.getVolumeName(), bucketInfo.getBucketName(), rc);
} else {
rc = defRC.getReplicationConfig();
}
Expand Down