Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2663

MOVE - Cannot delete Solr index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Fedora 4.7.4
    • Fix Version/s: None
    • Component/s: f4-camel, f4-messaging
    • Labels:
      None
    • Environment:
      Ubuntu 14.04 64-bit
      Fedora Webapp Plus 4.7.4
      Fcrepo-camel-toolbox 4.7.2
      Solr 4.10.3

      Description

      Hi,

      i've found this bug. When i MOVE a content from URI to other URI the original Solr index still remain indexed.

      curl -u fedoraAdmin:secret3 -X MOVE -H "Destination: http://172.17.0.2:8080/fcrepo/rest/TRX_OFFLINE/TEST_00000000030" "http://172.17.0.2:8080/fcrepo/rest/TRX/TEST_00000000030"

      This command generate a delete request on Solr, by karaf, but with an invalid ID
      karaf.log

      2018-01-11 22:48:40,767 | INFO | Consumer[fedora] | SolrRouter | 245 - org.fcrepo.camel.fcrepo-indexing-solr - 4.7.2 | Deleting Solr Object info:fedora/TRX/TEST_00000000041

      why just in MOVE command Fedora prepend a info:fedora into uri?

      Ovviusly in Solr nothing are found (for delete):

      solr.log

      INFO - 2018-01-11 22:48:40.769; org.apache.solr.update.processor.LogUpdateProcessor; [collection1] webapp=/solr path=/update params=

      {commitWithin=10000} {delete=[info:fedora/TRX/TEST_00000000041 (-1589338094456274944)]} 0 0

      The add in Solr works (same MOVE call)

      karaf.log

      2018-01-11 22:48:40,771 | INFO | Consumer[fedora] | SolrRouter | 245 - org.fcrepo.camel.fcrepo-indexing-solr - 4.7.2 | Indexing Solr Object http://172.17.0.2:8080/fcrepo/rest/TRX_OFFLINE/TEST_00000000041

      solr.log

      INFO - 2018-01-11 22:48:40.869; org.apache.solr.update.processor.LogUpdateProcessor; [collection1] webapp=/solr path=/update params={commitWithin=10000}

      {add=[http://172.17.0.2:8080/fcrepo/rest/TRX_OFFLINE/TEST_00000000041 (1589338094557986816)]}

      0 3

      Anyone can help me?
      It's a BUG?
      The DELETE works, same for PUT.

      Thanks and regards

        Attachments

        1. solr.log
          2 kB
        2. karaf.log
          61 kB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ferdinando.terranova Ferdinando Terranova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: