From e41f72c304cfd8de4ec13392aaed6271af0b1a39 Mon Sep 17 00:00:00 2001 From: zhangjian232 Date: Wed, 30 Aug 2023 09:48:31 +0800 Subject: [PATCH] reformat --- .../federation/resolver/MembershipNamenodeResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MembershipNamenodeResolver.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MembershipNamenodeResolver.java index 4344178d8a257..3c5c8eae7fd4d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MembershipNamenodeResolver.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MembershipNamenodeResolver.java @@ -499,7 +499,7 @@ public synchronized void rotateCache( * If the first nn in the cache is active, the active nn priority cannot be lowered. * This happens when other threads have already updated the cache. */ - if(firstNamenodeContext.getState().equals(ACTIVE)) { + if (firstNamenodeContext.getState().equals(ACTIVE)) { return namenodeContexts; } /* @@ -507,7 +507,7 @@ public synchronized void rotateCache( * that needs to be lowered in priority, there is no need to rotate. * This happens when other threads have already rotated the cache. */ - if(firstNamenodeContext.getRpcAddress().equals(namenode.getRpcAddress())) { + if (firstNamenodeContext.getRpcAddress().equals(namenode.getRpcAddress())) { List rotatedNnContexts = new ArrayList<>(namenodeContexts); Collections.rotate(rotatedNnContexts, -1); return rotatedNnContexts;