From c7708c53901504a1bc33ceb311e15e530e53e829 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Fri, 19 Nov 2010 18:05:36 +0000 Subject: [PATCH] HBASE-3237 Split request accepted -- BUT CURRENTLY A NOOP git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1036964 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../resources/hbase-webapps/master/table.jsp | 20 ++++++------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 30ec6c4c9f2..28c885e36fd 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -686,6 +686,7 @@ Release 0.90.0 - Unreleased incorrect (Kannan Muthukkaruppan via JD) HBASE-3239 Handle null regions to flush in HLog.cleanOldLogs (Kannan Muthukkaruppan via JD) + HBASE-3237 Split request accepted -- BUT CURRENTLY A NOOP IMPROVEMENTS diff --git a/src/main/resources/hbase-webapps/master/table.jsp b/src/main/resources/hbase-webapps/master/table.jsp index d69d417c560..24e8c3a7b81 100644 --- a/src/main/resources/hbase-webapps/master/table.jsp +++ b/src/main/resources/hbase-webapps/master/table.jsp @@ -46,28 +46,20 @@


<% if (action.equals("split")) { - /* if (key != null && key.length() > 0) { - Writable[] arr = new Writable[1]; - arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key)); - master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_SPLIT, arr); + hbadmin.split(key); } else { - master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_SPLIT); + hbadmin.split(tableName); } - */ - %> Split request accepted -- BUT CURRENTLY A NOOP -- FIX!. <% + %> Split request accepted. <% } else if (action.equals("compact")) { - /* if (key != null && key.length() > 0) { - Writable[] arr = new Writable[1]; - arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key)); - master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_COMPACT, arr); + hbadmin.compact(key); } else { - master.modifyTable(Bytes.toBytes(tableName), HConstants.Modify.TABLE_COMPACT, null); + hbadmin.compact(tableName); } - */ - %> Compact request accepted -- BUT CURRENTLY A NOOP -- FIX! <% + %> Compact request accepted. <% } %>

Reload.