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

ActiveObjects upgrade tasks not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 7.3.2, 7.4.1
    • 7.3.0
    • Database Support
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: