Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11861

SqlRegistry raising exception due to missing super.__del__

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
      None

      Description

      This commit is causing Exception ignored messages on anything that uses an SqlRegistry. I'm quite surprised that this isn't triggering an actual error, but it's making it look like my obs_ and jointcal package work is failing (due to the tracebacks, as pasted below). It looks like this isn't causing actual errors anywhere because we're not explicitly calling del sqlRegistry, but rather the interpreter is calling it during cleanup and not being able to propagate the error back up to anything, thus Exception Ignored.

      The simplest fix would be to remove the call to super in SqlRegistry.__del__().

      Example traceback:

      ...........x................................................................x.......Exception ignored in: <bound method SqlRegistry.__del__ of <lsst.daf.persistence.registries.SqliteRegistry object at 0x7fbb341e1f28>>
      Traceback (most recent call last):
        File "/home/parejkoj/lsst/lsstsw/stack/Linux64/daf_persistence/13.0-34-g674f0d6/python/lsst/daf/persistence/registries.py", line 320, in __del__
          super(SqlRegistry, self).__del__()
      AttributeError: 'super' object has no attribute '__del__'
      Exception ignored in: <bound method SqlRegistry.__del__ of <lsst.daf.persistence.registries.SqliteRegistry object at 0x7f6220253c88>>
      Traceback (most recent call last):
        File "/home/parejkoj/lsst/lsstsw/stack/Linux64/daf_persistence/13.0-34-g674f0d6/python/lsst/daf/persistence/registries.py", line 320, in __del__
          super(SqlRegistry, self).__del__()
      AttributeError: 'super' object has no attribute '__del__'
      Exception ignored in: <bound method SqlRegistry.__del__ of <lsst.daf.persistence.registries.SqliteRegistry object at 0x7fbf908ffb38>>
      Traceback (most recent call last):
        File "/home/parejkoj/lsst/lsstsw/stack/Linux64/daf_persistence/13.0-34-g674f0d6/python/lsst/daf/persistence/registries.py", line 320, in __del__
          super(SqlRegistry, self).__del__()
      AttributeError: 'super' object has no attribute '__del__'
      Exception ignored in: <bound method SqlRegistry.__del__ of <lsst.daf.persistence.registries.SqliteRegistry object at 0x7fbf908ffbe0>>
      Traceback (most recent call last):
        File "/home/parejkoj/lsst/lsstsw/stack/Linux64/daf_persistence/13.0-34-g674f0d6/python/lsst/daf/persistence/registries.py", line 320, in __del__
          super(SqlRegistry, self).__del__()
      AttributeError: 'super' object has no attribute '__del__'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                npease Nate Pease
                Reporter:
                Parejkoj John Parejko
                Reviewers:
                Tim Jenness
                Watchers:
                John Parejko, Joshua Hoblitt, Nate Pease, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel