Start a Conversation

Unsolved

This post is more than 5 years old

2613

February 22nd, 2010 09:00

problem of deleting on the us2 centera Cluster

Hi all,

I try to delete a xset on the cluster, but without success.
The following control :  " if (!xsystem.accessXSet(xuID, XSystem. ACCESS_DELETE_OK ))"
is always reached and display  "XSet not accessible for deletion"
is this a problem of rights?
My block of code is:

String xri="snia-xam://centera_vim!128.221.200.60:3218/?D:\\dev\\lib\\xam\\xamconnect.pea";

....

XUID xuID =

new XAMXUID(b64XUID);

if(!xsystem.accessXSet(xuID, XSystem.ACCESS_DELETE_OK))

     System.

out.println("XSet not accessible for deletion.");

else {

     if(xsystem.isXSetRetained(xuID))

          System.

out.println("XSet is under retention.");

     else {

          xsystem.deleteXSet(xuID);

          System.

out.println("XSet deleted");

     }

}

thx in avance

Mdi

417 Posts

March 1st, 2010 03:00

Yes, that is your problem.

The accessXSet method returns information relating to the existence of the XSet and the operations that you can attempt to perform on it.

Your code then correctly checks to see if the object is actually retained, as this information is not available via accessXSet.

5 Posts

March 9th, 2010 03:00

Hi all,

I still need help to solve my problem of removing xset.

Best regard,

diabate

417 Posts

March 9th, 2010 03:00

I have tested withthe cluster / profile combination that you are using and there are no problems apparent. Using the shXAM tool I created two XSets, checked the XSet access on each and then checked the retention on each.

In both cases, the access was fine, and one showed as being under retention while the other did not. I was able to delete the non retained XSet but not the retained one.

Did you create the XSet in question using a different profile?

5 Posts

March 9th, 2010 06:00

Hi all,

Ok, I understood the  problem. it is linked to rights. Using US3 with the connect string below, it works fine.

128.221.200.67:3218/?pea=D:\\us3armTest2_rdqeDcwh.pea

thank you all,

diabate

No Events found!

Top