File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22# 
33#  Entrypoint for HBase that ensures services are shutdown gracefuly
44# 
5+ #  Expects the following env vars:
6+ #  - RUN_REGION_MOVER: if set to true, the region mover will be run before region server shutdown
7+ #  - REGION_MOVER_OPTS: additional options for the region mover
8+ # 
59set  -x
610set  -euo pipefail
711
@@ -30,7 +34,7 @@ prepare_signal_handlers() {
3034
3135handle_term_signal () {
3236  if  [ " ${term_child_pid} " ;  then 
33-     if  [ " regionserver" ==  " ${HBASE_ROLE_NAME} " ;  then 
37+     if  [ " regionserver" ==  " ${HBASE_ROLE_NAME} "   &&  [  " true "   ==   " ${RUN_REGION_MOVER} "  ] ;  then 
3438      echo  " Start pre-shutdown" 
3539      #  REGION_MOVER_OPTS is a string that contains multiple arguments and needs to be spliced here
3640      #  therefore disable shellcheck for this line
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments