Changeset 32178

Show
Ignore:
Timestamp:
14.05.2018 22:52:57 (2 weeks ago)
Author:
litvinovg
Message:

Workaround for Solr memory leak on core reloading

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/activate.pl

    r31768 r32178  
    372372        # Call RELOAD core. Should already be using the index_dir directory for $keepold and $incremental case 
    373373         
    374         # Ping to see if corename exists, if it does, reload, else create 
     374        # Ping to see if corename exists, if it does, unload and create (avoid reload due to Solr memory leak on reload) 
    375375        if ($solr_server->admin_ping_core($corename)) { 
    376             $solr_server->admin_reload_core($corename);  
    377         } else { 
     376            $solr_server->admin_unload_core($corename);  
     377        }  
    378378            $solr_server->admin_create_core($corename, $index_dir); 
    379         } 
     379         
    380380        } 
    381381    }