Skip to content

Commit ae603b6

Browse files
committed
Merge branch '2.1' into 3.1
2 parents cfb4563 + fa3de84 commit ae603b6

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

core/src/main/java/org/apache/accumulo/core/conf/Property.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -878,14 +878,6 @@ public enum Property {
878878
+ " The resources that are used by default can be seen in"
879879
+ " `accumulo/server/monitor/src/main/resources/templates/default.ftl`.",
880880
"2.0.0"),
881-
MONITOR_OBFUSCATE_EXTENTS("monitor.extents.obfuscate", "true", PropertyType.BOOLEAN,
882-
"Obfuscates the table extent information displayed in the Monitor if true. Setting"
883-
+ " this to false will expose data in the row of the keys where tablets split. It"
884-
+ " is not recommended to set this to false if the Monitor is exposed to entities"
885-
+ " that should not see this information. The Monitor process reads this property"
886-
+ " from the accumulo.properties file only, not ZooKeeper, so it cannot be"
887-
+ " changed at runtime.",
888-
"2.1.4"),
889881
// per table properties
890882
TABLE_PREFIX("table.", null, PropertyType.PREFIX,
891883
"Properties in this category affect tablet server treatment of tablets,"
@@ -1555,7 +1547,7 @@ public static boolean isValidTablePropertyKey(String key) {
15551547

15561548
// others
15571549
TSERV_NATIVEMAP_ENABLED, TSERV_SCAN_MAX_OPENFILES, MANAGER_RECOVERY_WAL_EXISTENCE_CACHE_TIME,
1558-
TSERV_SESSION_MAXIDLE, TSERV_UPDATE_SESSION_MAXIDLE, MONITOR_OBFUSCATE_EXTENTS);
1550+
TSERV_SESSION_MAXIDLE, TSERV_UPDATE_SESSION_MAXIDLE);
15591551

15601552
/**
15611553
* Checks if the given property may be changed via Zookeeper, but not recognized until the restart

server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java

-11
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public class Monitor extends AbstractServer implements HighlyAvailableService {
115115
private static final int REFRESH_TIME = 5;
116116

117117
private final long START_TIME;
118-
private final boolean obfuscateExtents;
119118

120119
public static void main(String[] args) throws Exception {
121120
try (Monitor monitor = new Monitor(new ConfigOpts(), args)) {
@@ -126,12 +125,6 @@ public static void main(String[] args) throws Exception {
126125
Monitor(ConfigOpts opts, String[] args) {
127126
super("monitor", opts, args);
128127
START_TIME = System.currentTimeMillis();
129-
// Using site configuration on purpose. We want to get the value from
130-
// accumulo.properties file local to the Monitor. We don't want to
131-
// enable someone to change this property dynamically and expose
132-
// information.
133-
obfuscateExtents =
134-
getContext().getSiteConfiguration().getBoolean(Property.MONITOR_OBFUSCATE_EXTENTS);
135128
}
136129

137130
private final AtomicLong lastRecalc = new AtomicLong(0L);
@@ -1056,8 +1049,4 @@ public Optional<HostAndPort> getCoordinatorHost() {
10561049
public int getLivePort() {
10571050
return livePort;
10581051
}
1059-
1060-
public boolean isObfuscateExtents() {
1061-
return obfuscateExtents;
1062-
}
10631052
}

server/monitor/src/main/java/org/apache/accumulo/monitor/rest/tservers/TabletServerResource.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ private List<CurrentOperations> doCurrentOperations(List<TabletStats> tsStats) t
320320

321321
KeyExtent extent = KeyExtent.fromThrift(info.extent);
322322
TableId tableId = extent.tableId();
323-
String displayExtent = String.format("[%s]",
324-
monitor.isObfuscateExtents() ? extent.obscured() : extent.endRow().toString());
323+
String displayExtent = String.format("[%s]", extent.obscured());
325324

326325
String tableName = monitor.getContext().getPrintableTableInfoFromId(tableId);
327326

0 commit comments

Comments
 (0)