Expand my Community achievements bar.

SOLVED

Filesystem snapshot backups & lucene index

Avatar

Level 2

Hi,

We're looking into using the filesystem snapshot backup method, which is extremely fast. The important part is suspending all writes to disk while the filesystem snapshot is taken. According to the docs invoking the JMX operation blockRepositoryWrites on the MBean com.adobe.granite:type=Repository prevents CRX writing to disk. My question is, does this also suspend lucene indexes being written as well (is lucene seen as part of CRX) ? 

If lucene operations aren't suspended there is a chance that the indexes get scrambled, which would mean deleting the indexes to recover which can mean a considerable recovery time.

Thanks,

Jon.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Jon,

Technically writing to lucene is not suspended. But as the Lucene index updates are executed immediately after the save to the TarPM, they are part of the transaction. So the block of TarPM write activities will also block Lucene index updates.

And to every rule there is an exception: Large binaries are updated asynchronously; AFAIK they are not affected by this suspend.

Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Jon,

Technically writing to lucene is not suspended. But as the Lucene index updates are executed immediately after the save to the TarPM, they are part of the transaction. So the block of TarPM write activities will also block Lucene index updates.

And to every rule there is an exception: Large binaries are updated asynchronously; AFAIK they are not affected by this suspend.

Jörg

Avatar

Level 2

Thanks Jörg, that is extremely helpful.