[ 
https://issues.apache.org/jira/browse/OODT-781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15187620#comment-15187620
 ] 

Cynthia L Wong commented on OODT-781:
-------------------------------------

I'm wondering if 0.11 has been tested with this fix. But, I am still getting 
issues with this method.

I ingested a file auto0660.16n.

% ./filemgr-client -u http://localhost:9000 -op -pbyn -pn auto0660.16n

Results:
...
INFO: Loading File Manager Configuration Properties from: 
[/home/clwong/deploy/gnss-h2o/pcs/current/filemgr/etc/filemgr.properties]
Product:
 - ID: fae7ae66-e442-11e5-8e1a-539351b577d3
 - Name: auto0660.16n
 - ProductType: nav
 - Structure: Flat
 - Status: RECEIVED

% ./filemgr-client -u http://localhost:9000 -op -dbyn -pn auto0660.16n

Results:
...
INFO: Loading File Manager Configuration Properties from: 
[/home/clwong/deploy/gnss-h2o/pcs/current/filemgr/etc/filemgr.properties]
Mar 09, 2016 10:34:30 AM 
org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init>
INFO: Loading File Manager Configuration Properties from: 
[/home/clwong/deploy/gnss-h2o/pcs/current/filemgr/etc/filemgr.properties]
ERROR: Failed to delete product 
'org.apache.oodt.cas.filemgr.structs.Product@6989da5e' : 
org.apache.xmlrpc.XmlRpcException: java.lang.NoSuchMethodException: 
org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.removeProduct(java.util.Hashtable)

Physical file auto0660.16n was removed though. But, the registry remains in 
catalog.
Something is wrong with the api removeProduct. It seems that the client still 
uses removeProduct api and the fix may change to removeFile???

Try the delete command again and got the following error.

INFO: Loading File Manager Configuration Properties from: 
[/home/clwong/deploy/gnss-h2o/pcs/current/filemgr/etc/filemgr.properties]
ERROR: Failed to delete product 
'org.apache.oodt.cas.filemgr.structs.Product@6989da5e' : 
org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.io.IOException: 
Failed to delete file /home/clwong/data/store/RAWDATA/2016/nav/auto0660.16n - 
delete returned false

In summary, it seems to me that the file is deleted from storage but the record 
remains in data catalog.

Then, I can't ingest again if I setup uniqueness for the same product.

> IllegalArgumentException: RADiX filemgr-client script cannot delete product 
> by id or name
> -----------------------------------------------------------------------------------------
>
>                 Key: OODT-781
>                 URL: https://issues.apache.org/jira/browse/OODT-781
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.7
>         Environment: Mac OS X 10.9.2
> java version "1.7.0_51"
> Apache Maven 2.2.1
>            Reporter: Mengying Wang
>            Assignee: Tom Barber
>            Priority: Minor
>             Fix For: 0.11
>
>
> I am trying to delete some product in the OODT File Manager using the product 
> id or name. However, the system raises "java.lang.IllegalArgumentException: 
> URI is not absolute" error. 
> Below are my commands: 
> ./filemgr-client --op --dbyid --productId 
> 2b0e7582-6077-11e4-ac24-8d456d2e5b9b --url http://localhost:9000
> ./filemgr-client -op --deleteProductByName --productName test.txt --url 
> http://localhost:9000
> Part of the file manager logs is shown here: 
> ......
> Oct 30, 2014 2:56:21 PM 
> org.springframework.beans.factory.support.AbstractBeanFactory doGetBean
> FINE: Returning cached instance of singleton bean 'sqlQuery'
> Oct 30, 2014 2:56:21 PM 
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init>
> INFO: Loading File Manager Configuration Properties from: 
> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.properties]
> Oct 30, 2014 2:56:21 PM 
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init>
> INFO: Loading File Manager Configuration Properties from: 
> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.properties]
> ERROR: Failed to delete product 
> 'org.apache.oodt.cas.filemgr.structs.Product@5433d17' : java.lang.Exception: 
> java.lang.IllegalArgumentException: URI is not absolute



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to