accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1332224 - /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java
Date Mon, 30 Apr 2012 14:38:01 GMT
Author: ecn
Date: Mon Apr 30 14:38:01 2012
New Revision: 1332224

URL: http://svn.apache.org/viewvc?rev=1332224&view=rev
Log:
ACCUMULO-566 zero tservers is bad

Modified:
    accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java

Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java?rev=1332224&r1=1332223&r2=1332224&view=diff
==============================================================================
--- accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java
(original)
+++ accumulo/trunk/server/src/main/java/org/apache/accumulo/server/monitor/servlets/MasterServlet.java
Mon Apr 30 14:38:01 2012
@@ -129,8 +129,8 @@ public class MasterServlet extends Basic
         slaves.add(down.server);
       }
       Table masterStatus = new Table("masterStatus", "Master Status");
-      masterStatus.addSortableColumn("#&nbsp;Online<br />Tablet&nbsp;Servers",
new NumberType<Integer>((int) (slaves.size() * 0.8), slaves.size(),
-          (int) (slaves.size() * 0.6), slaves.size()), "Number of tablet servers currently
available");
+      masterStatus.addSortableColumn("#&nbsp;Online<br />Tablet&nbsp;Servers",
new NumberType<Integer>((int) (slaves.size() * 0.8 + 1.0), slaves.size(),
+          (int) (slaves.size() * 0.6 + 1.0), slaves.size()), "Number of tablet servers currently
available");
       masterStatus.addSortableColumn("#&nbsp;Total<br />Tablet&nbsp;Servers",
new NumberType<Integer>(), "The total number of tablet servers configured");
       masterStatus.addSortableColumn("Loggers", new NumberType<Integer>((int) (slaves.size()
* .8), Integer.MAX_VALUE, 1, Integer.MAX_VALUE),
           "The number of write-ahead loggers.  This should be approximately the same as the
number of tablet servers (and greater than zero).");



Mime
View raw message