You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/impl/MountTableStoreImpl.java
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,9 @@ public AddMountTableEntryResponse addMountTableEntry(
117
117
AddMountTableEntryResponseresponse =
118
118
AddMountTableEntryResponse.newInstance();
119
119
response.setStatus(status);
120
-
updateCacheAllRouters();
120
+
if (status) {
121
+
updateCacheAllRouters();
122
+
}
121
123
returnresponse;
122
124
} else {
123
125
AddMountTableEntryResponseresponse =
@@ -139,7 +141,9 @@ public UpdateMountTableEntryResponse updateMountTableEntry(
139
141
UpdateMountTableEntryResponseresponse =
140
142
UpdateMountTableEntryResponse.newInstance();
141
143
response.setStatus(status);
142
-
updateCacheAllRouters();
144
+
if (status) {
145
+
updateCacheAllRouters();
146
+
}
143
147
returnresponse;
144
148
} else {
145
149
UpdateMountTableEntryResponseresponse =
@@ -170,7 +174,9 @@ public RemoveMountTableEntryResponse removeMountTableEntry(
0 commit comments