Skip to content

Commit

Permalink
keyspace and table names in NodeInfo must be in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
krolser authored and erebe committed Jan 30, 2019
1 parent 2da72ae commit 85773af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ static Optional<NodeInfo> getNodeInfo(MBeanServerConnection beanConn) {
Set<ObjectName> names = beanConn.queryNames(ObjectName.getInstance("org.apache.cassandra.db:type=ColumnFamilies,keyspace=*,columnfamily=*"), null);
for (ObjectName name : names) {
String[] values = name.toString().split("[=,]");
keyspaces.add(values[3]);
tables.add(values[5]);
keyspaces.add(values[3].toLowerCase());
tables.add(values[5].toLowerCase());
}
} catch (Exception e) {
logger.error("Cannot retrieve keyspaces/tables information", e);
Expand Down

0 comments on commit 85773af

Please sign in to comment.