<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>3580</bug_id>
          
          <creation_ts>2005-07-19 12:19</creation_ts>
          <short_desc>Directory removal not working</short_desc>
          <delta_ts>2005-07-19 14:54:51</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>RFT</product>
          <component>RFT</component>
          <version>development</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          
          
          
          
          
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Lane">lane@mcs.anl.gov</reporter>
          <assigned_to name="Ravi Madduri">madduri@mcs.anl.gov</assigned_to>
          <cc>ogsa-bugs@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2005-07-19 12:19:28</bug_when>
            <thetext>I&apos;m having problems deleting directories with the trunk code (haven&apos;t tried the
4.0 branch).  I get the following debug output, but the directory has not been
deleted:

2005-07-19 11:07:42,017 DEBUG database.ReliableFileTransferDbAdapter
[Thread-36,getOverallStatus:1234] OverallStatus for requestId: 30039 Finished:0
Retrying:0 Failed:0 Active:1 Pending:0 Cancelled:0
2005-07-19 11:07:42,018 DEBUG service.TransferWork [Thread-36,statusChanged:171]
[Request 30039, Transfer 53542] setting overall rp to (finished: 0, active: 1,
failed: 0, restarted: 0, pending: 0, cancelled: 0)
2005-07-19 11:07:42,048 DEBUG service.DeleteClient [Thread-36,delete:149]
Deleting a directory
/home/lane/.globus/scratch/6d817745-c963-4125-6821-c6fc5d545a4a/
2005-07-19 11:07:42,118 DEBUG service.DeleteClient [Thread-36,delete:168] This
dir: /home/lane/.globus/scratch/6d817745-c963-4125-6821-c6fc5d545a4a/ is deleted
2005-07-19 11:07:42,118 DEBUG service.TransferWork [Thread-36,processStates:465]
[Request 30039, Transfer 53542] processing state for transfer of
gsiftp://logan:2811/home/lane/.globus/scratch/6d817745-c963-4125-6821-c6fc5d545a4a/
 -&gt;  null
2005-07-19 11:07:42,118 DEBUG service.TransferWork [Thread-36,processStates:475]
[Request 30039, Transfer 53542] transfer done</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2005-07-19 12:23:44</bug_when>
            <thetext>I just tried this with the globus_4_0_branch code and am having the same problem:

logan% ls ~/.globus/scratch/
logan% /usr/local/globus/globus-4.0.1/bin/globusrun-ws -submit -factory logan
-submission-id uuid:6d817745-c963-4125-6821-c6fc5d545a4a -staging-delegate
-streaming -job-description-file /tmp/lane/jdl-zTmOVv.xml
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:6d817745-c963-4125-6821-c6fc5d545a4a
Termination time: 07/20/2005 17:21 GMT
Current job state: StageIn
Current job state: Active
Current job state: CleanUp-Hold
Tue Jul 19 11:21:21 MDT 2005
Current job state: CleanUp
Current job state: Done
Destroying job...Done.
Cleaning up any delegated credentials...Done.
logan% ls ~/.globus/scratch/
6d817745-c963-4125-6821-c6fc5d545a4a/


Here is the job description I&apos;m using:

logan% cat /tmp/lane/jdl-zTmOVv.xml
&lt;job&gt;
 &lt;executable&gt;/bin/date&lt;/executable&gt;
 &lt;directory&gt;/${GLOBUS_SCRATCH_DIR}/6d817745-c963-4125-6821-c6fc5d545a4a/&lt;/directory&gt;
 &lt;stdout&gt;/${GLOBUS_SCRATCH_DIR}/6d817745-c963-4125-6821-c6fc5d545a4a/out.15862&lt;/stdout&gt;
 &lt;stderr&gt;/${GLOBUS_SCRATCH_DIR}/6d817745-c963-4125-6821-c6fc5d545a4a/err.15862&lt;/stderr&gt;
 &lt;fileStageIn&gt;
  &lt;transfer&gt;
   &lt;sourceUrl&gt;gsiftp://logan/tmp/lane/empty/&lt;/sourceUrl&gt;
  
&lt;destinationUrl&gt;file:///${GLOBUS_SCRATCH_DIR}/6d817745-c963-4125-6821-c6fc5d545a4a/&lt;/destinationUrl&gt;
   &lt;attempts&gt;5&lt;/attempts&gt;
  &lt;/transfer&gt;
 &lt;/fileStageIn&gt;
 &lt;fileCleanUp&gt;
  &lt;deletion&gt;
   &lt;file&gt;file:///${GLOBUS_SCRATCH_DIR}/6d817745-c963-4125-6821-c6fc5d545a4a/&lt;/file&gt;
  &lt;/deletion&gt;
 &lt;/fileCleanUp&gt;
&lt;/job&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-07-19 13:33:18</bug_when>
            <thetext>I just ran a simple test with rft command line client to delete a dir and it worked. I verified the notification 
is sent correctly. What version of gridftp server are you using ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-07-19 14:27:09</bug_when>
            <thetext>I think Peter was using pre 3.9.5 gridftp server that did not support recursive directory delete. For those 
servers RFT deletes all the files in the directory but the dir structure remains intact.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2005-07-19 14:54:51</bug_when>
            <thetext>A rebuild of the GridFTP server from the trunk solved the problem.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>