Uploaded image for project: 'DMC - Development'
  1. DMC - Development
  2. DMC-1137

gfal2.Gfal2Context.cancel issue for Xrootd transfers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: gfal 2.16.2
    • Fix Version/s: gfal 2.16.3
    • Component/s: None
    • Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
    • Labels:
      None

      Description

      Reported by Nicolo'

      Dear gfal devs,

      I tried to use {{gfal2.Gfal2Context.cancel to cancel a
      running xrootd transfer [*], but the cancel operation blocked
      until the transfer was completed, so it was not very useful for
      cancel...}}

      {{Looking at the repo, I guess that cancel callback might be
      actually implemented only for gridftp - how do I cancel gfal
      transfers in general?}}
      {{}}

      Thanks

      Nicolo'
      {{}}

      [*]
      {{}}

      >>> import gfal2
      {{ >>> ctx=gfal2.creat_context()}}
      {{ >>> par=ctx.transfer_parameters()}}
      {{ >>> par.timeout=60}}
      {{}}
      {{ >>> import threading}}
      {{ >>>
      t=threading.Thread(target=ctx.filecopy,args=[par,'root://eosatlas.cern.ch//eos/atlas/atlasdatadisk/rucio/mc16_13TeV/ff/ff/AOD.16512742._000971.pool.root.1','file:///tmp/niccotest3'])}}
      {{ >>> t.start()}}
      {{}}
      {{ >>> ctx.cancel()}}
      {{ 1}}
      {{}}

      >>> import os
      {{}}
      {{ >>> os.path.getsize('/tmp/niccotest3')}}
      {{ 6760938904}}
      {{}}

        Attachments

          Activity

            People

            • Assignee:
              amanzi Andrea Manzi
              Reporter:
              nmagini Nicolo Magini
              Component Watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: