Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14068

Avoid DB errors at startup when the DB is empty

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.4.4
    • Fix Version/s: 9.2-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      For example in postgresql's logs we get:

      ERROR:  relation "xwikidbversion" does not exist at character 45
      STATEMENT:  select this_.XWV_VERSION as XWV1_26_0_ from xwikidbversion this_
      ERROR:  relation "xwikidoc" does not exist at character 29
      STATEMENT:  select count(*) as y0_ from xwikidoc this_
      

      This is because at startup we try to read from the xwikidbversion table even when it doesn't exist, thus resulting on these errors on the DB side.

      When using docker-compose to start XWiki and the DB these errors are very visible and the user will wonder if something is not working so it's best to avoid them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: