Skip to content

Commit ec92ca6

Browse files
elekbharatviswa504
authored andcommitted
HDDS-1598. Fix Ozone checkstyle issues on trunk. Contributed by Elek, Marton. (#854)
1 parent 83549db commit ec92ca6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/placement/algorithms/SCMContainerPlacementRackAware.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public final class SCMContainerPlacementRackAware extends SCMCommonPolicy {
5151
LoggerFactory.getLogger(SCMContainerPlacementRackAware.class);
5252
private final NetworkTopology networkTopology;
5353
private boolean fallback;
54-
private int RACK_LEVEL = 1;
55-
private int MAX_RETRY= 3;
54+
private static final int RACK_LEVEL = 1;
55+
private static final int MAX_RETRY= 3;
5656

5757
/**
5858
* Constructs a Container Placement with rack awareness.

hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/placement/algorithms/TestSCMContainerPlacementRackAware.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class TestSCMContainerPlacementRackAware {
5353
// policy prohibit fallback
5454
private SCMContainerPlacementRackAware policyNoFallback;
5555
// node storage capacity
56-
private final long STORAGE_CAPACITY = 100L;
56+
private static final long STORAGE_CAPACITY = 100L;
5757

5858
@Before
5959
public void setup() {

0 commit comments

Comments
 (0)