admin@glassfish.java.net

Re: Should delete-node-config remove the node directory?

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Fri, 03 Dec 2010 14:55:02 -0800

Byron Nevins wrote:
> Yes a bug was filed and I fixed it. It should delete xxx if it has no
> other instance dirs in it. O/w it is a bug.

Or maybe it is leaving it since it doesn't know if it created
the directory or not? For example I can specify
"--nodedir /home/dipol/tmp" and I don't want that directory
deleted even if it is empty.

Joe

>
>
> On 12/3/2010 2:37 PM, Paul M Davies (Oracle) wrote:
>> Hi Tim,
>>
>> I asked a similar question. I believe the answer is that
>> delete[-local]-instance should delete the node directory when it
>> deletes the last instance on the node, for symmetry with
>> create[-local]-instance, which creates the node directory when the
>> first instance is created on the node.
>>
>> I might have even filed an issue for this change, but my recollection
>> is uncertain.
>>
>> Regards,
>> -Paul
>>
>> On 12/03/10 14:31, Tim Quinn wrote:
>>> I did this
>>>
>>> asadmin create-node-config --nodedir xxx mynode
>>> asadmin create-instance --nodedir xxx i1
>>> asadmin delete-instance i1
>>> asadmin delete-node-config mynode
>>>
>>> The xxx directory remained behind.
>>>
>>> Is this expected?
>>>
>>> - Tim
>>
>>
>> --
>>
>>
>>
>> Oracle <http://www.oracle.com>
>> Paul Davies| Principal Technical Writer| +1.408.276.3413
>> Oracle GlassFish Server Documentation
>> 4140 Network Circle, Santa Clara CA 95054, USA
>>
>> Green Oracle <http://www.oracle.com/commitment> Oracle is committed
>> to developing practices and products that help protect the environment
>>
>>
>
> --
> Byron Nevins - Oracle Corporation
> Home: 650-359-1290
> Cell: 650-784-4123
> Sierra: 209-295-2188
>