Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2967

UPDATE STATISTICS sometimes cores in CommonLogger::buildMsgBuffer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.3
    • sql-cmp
    • None

    Description

      Jira TRAFODION-2927 refactored the UPDATE STATISTICS logging logic to use the CommonLogger class. Unfortunately, this introduced a problem that sometimes causes cores in CommonLogger::buildMsgBuffer. The UPDATE STATISTICS code passes raw data via a "template" parameter to the logging layers. The logging layers interpret this template like a printf template. So, if the data happens to have a substring such as %d or %n in it, the logger code expects an additional argument to supply a substitution value for it. But none is supplied so we abend.

      A workaround is to turn automatic logging off, e.g. by setting CQD USTAT_AUTOMATIC_LOGGING 'OFF' in the "MD".DEFAULTS table.

      Attachments

        Issue Links

          Activity

            People

              dbirdsall Dave Birdsall
              dbirdsall Dave Birdsall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: