Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12428

ActiveObjects upgrade tasks not working

    XMLWordPrintable

    Details

      Description

      Issue Summary

      Active Objects upgrade tasks does not work

      Steps to Reproduce

      1. Install a version of Bitbucket Server before 7.3 and have a plugin create its schema
      2. Upgrade to Bitbucket Server 7.3 and include an ActiveObjects schema upgrade task

      Expected Results

      Upgrade completes

      Actual Results

      For a postgres database you get a log like the following

      2020-05-18 06:28:19,747 WARN  [active-objects-init-compatibility-tenant-0]  n.j.ao.db.PostgreSQLDatabaseProvider Error in schema creation: ERROR: column "MIRROR_TYPE" contains null values; attempting to roll back last partially generated table
      2020-05-18 06:28:19,757 WARN  [active-objects-init-compatibility-tenant-0]  c.a.a.osgi.TenantAwareActiveObjects bundle [com.atlassian.bitbucket.server.bitbucket-mirroring-upstream] failed to create ActiveObjectscom.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library:Database:
      	- name:PostgreSQL
      	- version:10.5
      	- minor version:5
      	- major version:10
      Driver:
      	- name:PostgreSQL JDBC Driver
      	- version:42.2.5
      

      Workaround

      Workaround described in ticket https://jira.atlassian.com/browse/BSERV-11441

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dkjellin Daniel
              Reporter:
              dkjellin Daniel
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: