Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-32911

Ability to Remove Orphaned records in the Confluence Database

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Orphaned records in the Confluence Database can cause quite a number of upgrade issues, such as this error highlighted here:

      2014-03-04 10:01:22,545 ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table BODYCONTENT add constraint FKA898D4778DD41734 foreign key (CONTENTID) references CONTENT
      2014-03-04 10:01:22,546 ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ORA-02298: cannot validate (CON1_OWNER.FKA898D4778DD41734) - parent keys not found
      

      This example is caused by BODYCONTENT orphaned entries that do not have references to the CONTENT table. A mechanism to sanitize these inconsistencies (that probably exist before proper foreign key constraints were introduced in an older version of Confluence, or probably caused by this: https://confluence.atlassian.com/display/CONFKB/Confluence+upgrade+errors+out+with+ORA-02298+parent+keys+not+found ) should be implemented to prevent upgrade pains. This can be done automatically during an upgrade, as part of an upgrade task, for example.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fsim Foo Sim (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: