Cannot restore XML backup from Cloud due to unpurged trash
プラットフォームについて: Server、Data Center、および Cloud (状況に応じる) - この記事はアトラシアンのサーバーおよびデータセンター プラットフォーム向けに記載されていますが、Atlassian Cloud のお客様も記事の内容を利用できる可能性があります。この記事で説明されている手順の実施が役立つと考えられる場合、アトラシアン サポートにお問い合わせのうえ、この記事を紹介してください。
Restoring an XML site backup from a Cloud instance (e.g., when migrating from Cloud to Server) fails to complete with an undisclosed error. The process appears to hang.
- CPU spikes during the process
- Heap is fully utilized
- Did you have to allocate more memory to the heap for the restore? For example, you allocated an unusually high amount of memory, like 4x-5x the size of the actual (compressed) backup file, and the whole heap is utilized. There's also a corresponding increase in full garbage collections.
The following query returns an unusually high number of entries marked for deletion (possibly numbering in the millions):
SELECT COUNT(*) FROM CONTENT WHERE CONTENTTYPE = 'PAGE' AND CONTENT_STATUS = 'deleted';
A space (or multiple spaces) in your Cloud instance has a high amount of un-purged trash. That is, content items that were deleted but the trash was not purged. This trash is included in the backup file, and during the restore process all of it is loaded into memory with the rest of the instance entities before being written to the database. This quickly eats up memory and triggers full garbage collections, which halts all processes while the collection occurs. However, the garbage collection cannot free up space, causing the process to hang indefinitely.
- Find out which spaces have trash that should be purged, and purge that trash through the UI
- Create a new site backup
If a space's trash has a large amount of trash (we've seen spaces with more than 1.7 million items), the Trash page in Confluence will be inaccessible and could crash your instance because of the amount of data being requested from the database. To determine if this is the case, please create a support request to have the Cloud team query the database for the existence of such trash. If we find that there are indeed spaces like this, we will have to purge the trash through the database. Once that trash is purged, you can create a new site backup.