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

Respect GLOBUS_THREAD_MODEL environment (was gfal2 do not work with Python's multiprocess module)

    XMLWordPrintable

    Details

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

      Description

      Code to reproduce:

      from multiprocessing import Process
      
      def func():
          import os
          import gfal2
      
          ctx = gfal2.creat_context()
          rpath = "gsiftp://grid-se021.physik.rwth-aachen.de:2811//pnfs/physik.rwth-aachen.de/cms/store/user/mrieger"
          print ctx.stat(rpath)
      
      print("try in-process:")
      func()
      print("---")
      
      print("try sub-process")
      p = Process(target=func)
      p.start()
      p.join()
      print("---")
      

      Error is: GError: Operation timed out

        Attachments

          Activity

            People

            Assignee:
            aalvarez Alejandro Alvarez Ayllon (Inactive)
            Reporter:
            aalvarez Alejandro Alvarez Ayllon (Inactive)
            Component Watchers:
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: