Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3611: We do not show ZooKeeper data in the UI for a node that has children.

Mark Robert Miller92592095e6c2
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index f24bd6e0816..d5317a585c9 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -110,6 +110,10 @@ Bug Fixes
* SOLR-3782: A leader going down while updates are coming in can cause shard
inconsistency. (Mark Miller)
+* SOLR-3611: We do not show ZooKeeper data in the UI for a node that has children.
+ (Mark Miller)
+
+
Other Changes
----------------------
diff --git a/solr/webapp/web/js/scripts/cloud.js b/solr/webapp/web/js/scripts/cloud.js
index 5aa9f2e1fc7..9662b57b83a 100644
--- a/solr/webapp/web/js/scripts/cloud.js
+++ b/solr/webapp/web/js/scripts/cloud.js
@@ -589,41 +589,35 @@ var init_tree = function( tree_element )
var data_element = $( '#data', this );
- if( 0 !== parseInt( response.znode.prop.children_count ) )
- {
- data_element.hide();
- }
- else
- {
- var highlight = false;
- var data = '<em>File "' + response.znode.path + '" has no Content</em>';
+ var highlight = false;
+ var data = '<em>File "' + response.znode.path + '" has no Content</em>';
- if( response.znode.data )
+ if( response.znode.data )
+ {
+ var classes = '';
+ var path = response.znode.path.split( '.' );
+
+ if( 1 < path.length )
{
- var classes = '';
- var path = response.znode.path.split( '.' );
-
- if( 1 < path.length )
- {
- highlight = true;
- classes = 'syntax language-' + path.pop().esc();
- }
-
- data = '<pre class="' + classes + '">'
- + response.znode.data.esc()
- + '</pre>';
+ highlight = true;
+ classes = 'syntax language-' + path.pop().esc();
}
+
+ data = '<pre class="' + classes + '">'
+ + response.znode.data.esc()
+ + '</pre>';
+ }
- data_element
- .show()
- .html( data );
+ data_element
+ .show()
+ .html( data );
- if( highlight )
- {
- hljs.highlightBlock( data_element.get(0) );
- }
+ if( highlight )
+ {
+ hljs.highlightBlock( data_element.get(0) );
}
+
},
error : function( xhr, text_status, error_thrown)
{