Skip to content

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Jun 23, 2023
2 parents 838e6f4 + 05e4693 commit 260fde4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
Expand Up @@ -601,7 +601,7 @@ public interface MetricsProducer {
Logger LOG = LoggerFactory.getLogger(MetricsProducer.class);

String METRICS_LOW_MEMORY = "accumulo.detected.low.memory";
String METRICS_COMPACTOR_PREFIX = "accumulo.compactor";
String METRICS_COMPACTOR_PREFIX = "accumulo.compactor.";
String METRICS_COMPACTOR_MAJC_STUCK = METRICS_COMPACTOR_PREFIX + "majc.stuck";

String METRICS_FATE_PREFIX = "accumulo.fate.";
Expand Down
Expand Up @@ -80,20 +80,6 @@ public TableConfiguration(ServerContext context, TableId tableId, NamespaceConfi
newDeriver(conf -> createCryptoService(conf, tableId, context.getCryptoFactory()));
}

@Override
public boolean isPropertySet(Property prop) {
if (_isPropertySet(prop)) {
return true;
}

return getParent().isPropertySet(prop);
}

private boolean _isPropertySet(Property property) {
Map<String,String> propMap = getSnapshot();
return propMap.get(property.getKey()) != null;
}

@Override
public String get(Property property) {
String value = _get(property);
Expand Down
Expand Up @@ -141,15 +141,7 @@ public void getProperties(final Map<String,String> props, final Predicate<String

@Override
public boolean isPropertySet(final Property property) {

Map<String,String> theseProps = getSnapshot();

if (theseProps.get(property.getKey()) != null) {
return true;
}

return getParent().isPropertySet(property);

return getSnapshot().get(property.getKey()) != null || getParent().isPropertySet(property);
}

public @NonNull Map<String,String> getSnapshot() {
Expand Down

0 comments on commit 260fde4

Please sign in to comment.