Copying a ExtensionDBException have side effects

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Exception types are expected to be copiable and copied. In its current state, ExtensionDBException have side effects since cloning the status will call invokeCAndConvertStatusToException which will increment metrics.

      Generally we have to be extra careful when dealing with objects that have side effects in their copy constructors, but for an exception type this is problematic as it is implementation defined when the exception objects are copied.

            Assignee:
            Santiago Roche
            Reporter:
            Guillaume Racicot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: