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
This commit is contained in:
parent
3b803714c5
commit
f4d3ce3f65
|
@ -47,9 +47,10 @@ Release 0.19.0 - Unreleased
|
||||||
HBASE-954 Don't reassign root region until ProcessServerShutdown has split
|
HBASE-954 Don't reassign root region until ProcessServerShutdown has split
|
||||||
the former region server's log
|
the former region server's log
|
||||||
HBASE-957 PerformanceEvaluation tests if table exists by comparing descriptors
|
HBASE-957 PerformanceEvaluation tests if table exists by comparing descriptors
|
||||||
HBASE-728, HBASE-956, HBASE-955 Address thread naming, which threads are
|
HBASE-728, HBASE-956, HBASE-955 Address thread naming, which threads are
|
||||||
Chores, vs Threads, make HLog manager the write ahead log and
|
Chores, vs Threads, make HLog manager the write ahead log and
|
||||||
not extend it to provided optional HLog sync operations.
|
not extend it to provided optional HLog sync operations.
|
||||||
|
HBASE-970 Update the copy/rename scripts to go against change API
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-901 Add a limit to key length, check key and value length on client side
|
HBASE-901 Add a limit to key length, check key and value length on client side
|
||||||
|
|
|
@ -130,7 +130,7 @@ begin
|
||||||
LOG.info("Copying " + oldRDir.toString() + " as " + newRDir.toString())
|
LOG.info("Copying " + oldRDir.toString() + " as " + newRDir.toString())
|
||||||
FileUtil.copy(fs, oldRDir, fs, newRDir, false, true, c)
|
FileUtil.copy(fs, oldRDir, fs, newRDir, false, true, c)
|
||||||
# Create 'new' region
|
# 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,
|
# 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.
|
# need to do the work to figure proper region to add this new region to.
|
||||||
LOG.info("Adding to meta: " + newR.toString())
|
LOG.info("Adding to meta: " + newR.toString())
|
||||||
|
|
|
@ -134,7 +134,7 @@ begin
|
||||||
LOG.info("Removing " + Bytes.toString(key.getRow()) + " from .META.")
|
LOG.info("Removing " + Bytes.toString(key.getRow()) + " from .META.")
|
||||||
metaRegion.deleteAll(key.getRow(), HConstants::LATEST_TIMESTAMP)
|
metaRegion.deleteAll(key.getRow(), HConstants::LATEST_TIMESTAMP)
|
||||||
# Create 'new' region
|
# 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,
|
# 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.
|
# need to do the work to figure proper region to add this new region to.
|
||||||
LOG.info("Adding to meta: " + newR.toString())
|
LOG.info("Adding to meta: " + newR.toString())
|
||||||
|
|
Loading…
Reference in New Issue