Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21058

eZFind: don't fork in updatesearchindex script when using a single process

    XMLWordPrintable

    Details

      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
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 21 minutes
                6h 21m