SOLR-12973: Admin UI Nodes view support for replica* replica names. (Daniel Collins, Christine Poerschke, janhoy)

This commit is contained in:
Christine Poerschke 2018-12-28 12:23:53 +00:00
parent c9c3ef0ef9
commit 345a655f21
2 changed files with 3 additions and 1 deletions

View File

@ -211,6 +211,8 @@ Improvements
* SOLR-12885: BinaryResponseWriter (javabin format) should directly copy from BytesRef to output (noble)
* SOLR-12973: Admin UI "Nodes" view support for replica* replica names. (Daniel Collins, Christine Poerschke, janhoy)
Other Changes
----------------------

View File

@ -404,7 +404,7 @@ var nodesSubController = function($scope, Collections, System, Metrics) {
if (cores) {
for (coreId in cores) {
var core = cores[coreId];
var keyName = "solr.core." + core['core'].replace(/(.*?)_(shard(\d+_?)+)_(replica_?[ntp]?\d+)/, '\$1.\$2.\$4');
var keyName = "solr.core." + core['core'].replace(/(.*?)_(shard(\d+_?)+)_(replica.*?)/, '\$1.\$2.\$4');
var nodeMetric = m.metrics[keyName];
var size = nodeMetric['INDEX.sizeInBytes'];
size = (typeof size !== 'undefined') ? size : 0;