HBASE-20132 Change the "KV" to "Cell" for web UI

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Guangxu Cheng 2018-03-05 11:20:25 +08:00 committed by Chia-Ping Tsai
parent b87165cbf7
commit 1728b48c82
3 changed files with 11 additions and 11 deletions

View File

@ -310,9 +310,9 @@ if (master.getServerManager() != null) {
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>RSGroup Name</th> <th>RSGroup Name</th>
<th>Num. Compacting KVs</th> <th>Num. Compacting Cells</th>
<th>Num. Compacted KVs</th> <th>Num. Compacted Cells</th>
<th>Remaining KVs</th> <th>Remaining Cells</th>
<th>Compaction Progress</th> <th>Compaction Progress</th>
</tr> </tr>
<%java> <%java>
@ -321,7 +321,7 @@ if (master.getServerManager() != null) {
int numStores = 0; int numStores = 0;
long totalCompactingCells = 0; long totalCompactingCells = 0;
long totalCompactedCells = 0; long totalCompactedCells = 0;
long remainingKVs = 0; long remainingCells = 0;
long compactionProgress = 0; long compactionProgress = 0;
for (Address server : rsGroupInfo.getServers()) { for (Address server : rsGroupInfo.getServers()) {
ServerMetrics sl = collectServers.get(server); ServerMetrics sl = collectServers.get(server);
@ -332,7 +332,7 @@ if (master.getServerManager() != null) {
} }
} }
} }
remainingKVs = totalCompactingCells - totalCompactedCells; remainingCells = totalCompactingCells - totalCompactedCells;
String percentDone = ""; String percentDone = "";
if (totalCompactingCells > 0) { if (totalCompactingCells > 0) {
percentDone = String.format("%.2f", 100 * percentDone = String.format("%.2f", 100 *
@ -343,7 +343,7 @@ if (master.getServerManager() != null) {
<td><& rsGroupLink; rsGroupName=rsGroupName; &></td> <td><& rsGroupLink; rsGroupName=rsGroupName; &></td>
<td><% totalCompactingCells %></td> <td><% totalCompactingCells %></td>
<td><% totalCompactedCells %></td> <td><% totalCompactedCells %></td>
<td><% remainingKVs %></td> <td><% remainingCells %></td>
<td><% percentDone %></td> <td><% percentDone %></td>
</tr> </tr>
<%java> <%java>

View File

@ -289,9 +289,9 @@ if (sl != null) {
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>ServerName</th> <th>ServerName</th>
<th>Num. Compacting KVs</th> <th>Num. Compacting Cells</th>
<th>Num. Compacted KVs</th> <th>Num. Compacted Cells</th>
<th>Remaining KVs</th> <th>Remaining Cells</th>
<th>Compaction Progress</th> <th>Compaction Progress</th>
</tr> </tr>
<%java> <%java>

View File

@ -196,8 +196,8 @@
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Region Name</th> <th>Region Name</th>
<th>Num. Compacting KVs</th> <th>Num. Compacting Cells</th>
<th>Num. Compacted KVs</th> <th>Num. Compacted Cells</th>
<th>Compaction Progress</th> <th>Compaction Progress</th>
<th>Last Major Compaction</th> <th>Last Major Compaction</th>
</tr> </tr>