Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.0, 5.1
-
None
Description
Currently the bin/php/updatesearchindexsolr.php script will always fork new processes, even if the --conc parameter is set to 1 (number of processes).
However, this creates a compatibility issue when persistent connections or Oracle's 'Database Resident Connection Pooling' is used.
The script should be compatible with these configurations by NOT forking when using a single process.
Steps to reproduce:
Using oracle DRCP with a single process:
$ php extension/ezfind/bin/php/updatesearchindexsolr.php -s ezdemo_site_admin --conc=1 Starting object re-indexing Using fork. Using 2 concurent process(es) Number of objects to index: 97 Creating a new thread: 23776 ...................................................................... 72.16% ........................... 100.00% PHP Warning: oci_fetch_all(): ORA-01002: fetch out of sequence in /var/www/ezp5.x/ezpublish_legacy/extension/ezoracle/ezdb/dbms-drivers/ezoracledb.php on line 557 PHP Warning: oci_parse(): ORA-03114: not connected to ORACLE in /var/www/ezp5.x/ezpublish_legacy/extension/ezoracle/ezdb/dbms-drivers/ezoracledb.php on line 471 PHP Warning: oci_error() expects parameter 1 to be resource, boolean given in /var/www/ezp5.x/ezpublish_legacy/extension/ezoracle/ezdb/dbms-drivers/ezoracledb.php on line 476 PHP Warning: oci_fetch_all() expects parameter 1 to be resource, boolean given in /var/www/ezp5.x/ezpublish_legacy/extension/ezoracle/ezdb/dbms-drivers/ezoracledb.php on line 557 ... PHP Warning: oci_commit(): ORA-03114: not connected to ORACLE in /var/www/ezp5.x/ezpublish_legacy/extension/ezoracle/ezdb/dbms-drivers/ezoracledb.php on line 630