Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-57681

Site reindex should reset journal entry pointer upon successful completion to prevent the reindex run after each restart when the journal entry queue is empty

      Issue Summary

      As documented in How to Rebuild the Content Indexes From Scratch on Confluence Data Center, journal directory must be deleted before reindexing. This however may cause that node to run full site reindexing at every restart afterward if there is no new index journal (content updates that require an index update e.g. new page, page update, etc...) during that reindexing. The reason is Confluence expects there must always be some entries in journal directory.

      Steps to Reproduce

      Just follow the instructions described in How to Rebuild the Content Indexes From Scratch on Confluence Data Center

      Expected Results

      <confluence-home>/journal/main_index is created when the index is rebuilt.

      Actual Results

      <confluence-home>/journal/main_index is not created.

      Notes

      When you do some page operation (e.g. new page, page update, etc...) after rebuilding index, you can see that the file is created for the first time.

      Workaround

      When you do How to Rebuild the Content Indexes From Scratch on Confluence Data Center, add a step to make page operation on Confluence as

      Start Node 1 and make any page operation on Confluence (this will recreate journal/main_index directory) . This node will rebuild its index from the database automatically on startup. Log files will print lines like the below to signify the reindex has been kicked off:

            [CONFSERVER-57681] Site reindex should reset journal entry pointer upon successful completion to prevent the reindex run after each restart when the journal entry queue is empty

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 510761 ]
            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 513142 ]
            Nobuyuki Mukai made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 921260 ]
            Saurabh Bhatia made changes -
            Link New: This issue causes CONFSERVER-95964 [ CONFSERVER-95964 ]
            Rob made changes -
            Labels Original: confluence-dc-reindex fireball-papercut fireball-sisyphus fireball-whl New: confluence-dc-reindex fireball-papercut fireball-sisyphus fireball-whl whl-fy24q3
            Rob made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 873926 ]
            Adilson Carvalho (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 870959 ]
            Jing Zheng made changes -
            Remote Link New: This issue links to "R7.19 P3. Directory Support › Active Directory, Java 11 › issue-719-CONFSERVER-57681-fix-startup-test-error (server-syd-bamboo)" [ 857302 ]
            Jing Zheng made changes -
            Remote Link New: This issue links to "R8.5 P3. Directory Support › Active Directory, Java 11 › issue-85-CONFSERVER-57681-fix-startup-test-error (server-syd-bamboo)" [ 857213 ]
            Jing Zheng made changes -
            Remote Link New: This issue links to "R8.5 P3. Directory Support › Active Directory, Java 17 › issue-85-CONFSERVER-57681-fix-startup-test-error (server-syd-bamboo)" [ 857135 ]

              8b5c2ab424ac Jing Zheng
              nhdang Nhan Dang
              Affected customers:
              3 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: