Details

      Description

      Objects without states cause the solr index to fail.

      Some data on the demo content makes this issue to happen.
      Objects 102-104 don't have any row in ezcobj_state_link and that makes the indexing fail. Adding states to these objects will solve the issue.

      Object 101 is not a complete object and the indexing also fails because of that.
      Removing all traces of that object will make solr indexing to continue without breaking on this particular object.

      Steps to reproduce:

      Run php app/console --env=prod ezplatform:solr_create_index
      It will generate the following:

      Indexing Content...
       
       48/57 [=======================>----]  84%
       
       
       
        [eZ\Publish\Core\Base\Exceptions\NotFoundException]
       
        Could not find 'content' with identifier 'contentId: 101, versionNo: 1'
       
       
       
       
       
      ezplatform:solr_create_index [<bulk_count>]
      

      Tested with the following package versions:

      ezsystems/ezplatform-solr-search-engine v1.0.2.2
      ezsystems/ezpublish-kernel v6.2.1
      ezsystems/ezstudio-demo-bundle v1.2.0
      ezsystems/ezstudio-demo-bundle-data v1.2.0
      ezsystems/platform-ui-bundle v1.2.1
      ezsystems/studio-ui-bundle v1.2.4

        Issue Links

          Activity

          Hide
          André Rømcke added a comment -

          This is two issues:

          • Studio bug in demo data (similar issue was found and fixed in platform clean install, so this needs to be checked in all 4 data sets)
          • Platform enhancement to make the indexing more forgiving, and log warnings/errors instead of halting.
          Show
          André Rømcke added a comment - This is two issues: Studio bug in demo data (similar issue was found and fixed in platform clean install, so this needs to be checked in all 4 data sets) Platform enhancement to make the indexing more forgiving, and log warnings/errors instead of halting.
          Hide
          Joao Inacio (Inactive) added a comment -

          An eZ Studio ticket EZS-773: "Content issues with studio demo data" was created to reflect this problem,
          once the demo data is clean the problem will not be verifiable on a default installation.

          This ticket is now being converted to improvement, solr_create_index command can be more forgiving of invalid contents and continue without failing.

          Show
          Joao Inacio (Inactive) added a comment - An eZ Studio ticket EZS-773 : "Content issues with studio demo data" was created to reflect this problem, once the demo data is clean the problem will not be verifiable on a default installation. This ticket is now being converted to improvement, solr_create_index command can be more forgiving of invalid contents and continue without failing.
          Show
          Andrzej Longosz added a comment - PR for this issue: https://github.com/ezsystems/ezplatform-solr-search-engine/pull/47
          Show
          Andrzej Longosz added a comment - Merged: https://github.com/ezsystems/ezplatform-solr-search-engine/commit/342d224141c5649774d181a2e5e9a091f3268fe9
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for platform.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for platform.

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2 days, 4 hours
                2d 4h