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

Improve error handling (qserv initialization broken when previously registered database does not exist)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:
      None

      Description

      Recipe:

      • start Qserv, use a database "LSST"
      • stop all Qserv services
      • remove the LSST database
      • start Qserv

      Result:

      {core}
      Starting xrootd.SQL error: Can't list tables for db LSST because the database does not exist.
      /usr/local/home/becla/qserv/1/qserv/build/dist/etc/init.d/qserv-functions: line 37: 18735 Aborted (core dumped) /usr/local/home/becla/qserv/1/stack/Linux64/xrootd/qs5/bin/xrootd -c /usr/local/home/becla/qserv/1/qserv/build/dist/etc/lsp.cf -l /usr/local/home/becla/qserv/1/qserv/build/dist/var/log/xrootd.log -n worker
      : Manager of pid-file quit without updating file. [FAILED]
      [FAILED]{core}

      xrootd log shows

      xrootd: build/wpublish/MySqlExportMgr.cc:130: void<unnamed>::doDb::operator()(const std::string&): Assertion `ok' failed.

      It is perfectly fine for Qserv to refuse to start if the database was removed, but the errors handling should be better.

        Attachments

          Issue Links

            Activity

            Hide
            frossie Frossie Economou added a comment -

            Hi Jacek, this too was unassigned and got caught in our bug-wranging net - assigning it to you as the relevant team lead for proper disposal.

            Show
            frossie Frossie Economou added a comment - Hi Jacek, this too was unassigned and got caught in our bug-wranging net - assigning it to you as the relevant team lead for proper disposal.
            Hide
            fritzm Fritz Mueller added a comment -

            Fine as-is for now.

            Show
            fritzm Fritz Mueller added a comment - Fine as-is for now.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fritzm Fritz Mueller
              Watchers:
              Fritz Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.