From f4d3ce3f658d79b20a5d009a708cf53f5bef84ba Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 29 Oct 2008 18:45:36 +0000 Subject: [PATCH] HBASE-970 Update the copy/rename scripts to go against change API git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@708979 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 7 ++++--- bin/copy_table.rb | 2 +- bin/rename_table.rb | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 922e83b14b8..b6c43cbac10 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -47,9 +47,10 @@ Release 0.19.0 - Unreleased HBASE-954 Don't reassign root region until ProcessServerShutdown has split the former region server's log HBASE-957 PerformanceEvaluation tests if table exists by comparing descriptors - HBASE-728, HBASE-956, HBASE-955 Address thread naming, which threads are - Chores, vs Threads, make HLog manager the write ahead log and - not extend it to provided optional HLog sync operations. + HBASE-728, HBASE-956, HBASE-955 Address thread naming, which threads are + Chores, vs Threads, make HLog manager the write ahead log and + not extend it to provided optional HLog sync operations. + HBASE-970 Update the copy/rename scripts to go against change API IMPROVEMENTS HBASE-901 Add a limit to key length, check key and value length on client side diff --git a/bin/copy_table.rb b/bin/copy_table.rb index ccf173c1caa..9bbc45233ba 100644 --- a/bin/copy_table.rb +++ b/bin/copy_table.rb @@ -130,7 +130,7 @@ begin LOG.info("Copying " + oldRDir.toString() + " as " + newRDir.toString()) FileUtil.copy(fs, oldRDir, fs, newRDir, false, true, c) # Create 'new' region - newR = HRegion.new(rootdir, utils.getLog(), fs, c, newHRI, nil, nil) + newR = HRegion.new(rootdir, utils.getLog(), fs, c, newHRI, nil) # Add new row. NOTE: Presumption is that only one .META. region. If not, # need to do the work to figure proper region to add this new region to. LOG.info("Adding to meta: " + newR.toString()) diff --git a/bin/rename_table.rb b/bin/rename_table.rb index 0ebf56ac681..df468aa5694 100644 --- a/bin/rename_table.rb +++ b/bin/rename_table.rb @@ -134,7 +134,7 @@ begin LOG.info("Removing " + Bytes.toString(key.getRow()) + " from .META.") metaRegion.deleteAll(key.getRow(), HConstants::LATEST_TIMESTAMP) # Create 'new' region - newR = HRegion.new(rootdir, utils.getLog(), fs, c, newHRI, nil, nil) + newR = HRegion.new(rootdir, utils.getLog(), fs, c, newHRI, nil) # Add new row. NOTE: Presumption is that only one .META. region. If not, # need to do the work to figure proper region to add this new region to. LOG.info("Adding to meta: " + newR.toString())