File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/master Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,9 @@ public void run() {
396
396
// Waiting time of non-meta region's moving for meta regions assignment.
397
397
private final long timeoutWaitMetaRegionAssignment ;
398
398
399
+ public static final String WARMUP_BEFORE_MOVE = "hbase.master.warmup.before.move" ;
400
+ private static final boolean DEFAULT_WARMUP_BEFORE_MOVE = true ;
401
+
399
402
public static class RedirectServlet extends HttpServlet {
400
403
private static final long serialVersionUID = 2894774810058302473L ;
401
404
private final int regionServerInfoPort ;
@@ -1846,10 +1849,15 @@ public void move(final byte[] encodedRegionName,
1846
1849
return ;
1847
1850
}
1848
1851
}
1849
- // warmup the region on the destination before initiating the move. this call
1850
- // is synchronous and takes some time. doing it before the source region gets
1851
- // closed
1852
- serverManager .sendRegionWarmup (rp .getDestination (), hri );
1852
+
1853
+ if (conf .getBoolean (WARMUP_BEFORE_MOVE , DEFAULT_WARMUP_BEFORE_MOVE )) {
1854
+ // warmup the region on the destination before initiating the move. this call
1855
+ // is synchronous and takes some time. doing it before the source region gets
1856
+ // closed
1857
+ LOG .info (getClientIdAuditPrefix () + " move " + rp + ", warming up region on " +
1858
+ rp .getDestination ());
1859
+ serverManager .sendRegionWarmup (rp .getDestination (), hri );
1860
+ }
1853
1861
1854
1862
// Here wait until all the meta regions are not in transition.
1855
1863
if (!hri .isMetaRegion () && assignmentManager .getRegionStates ().isMetaRegionInTransition ()) {
You can’t perform that action at this time.
0 commit comments