Changeset 32178


Ignore:
Timestamp:
05/14/18 22:52:57 (3 years ago)
Author:
Georgiy Litvinov
Message:

Workaround for Solr memory leak on core reloading

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.