You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2025/08/08 11:11:00 UTC
[jira] [Resolved] (OAK-11847) AzureJournalFile fails to rotate journal
[ https://issues.apache.org/jira/browse/OAK-11847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke resolved OAK-11847.
----------------------------------
Fix Version/s: 1.84.0
Resolution: Fixed
> AzureJournalFile fails to rotate journal
> ----------------------------------------
>
> Key: OAK-11847
> URL: https://issues.apache.org/jira/browse/OAK-11847
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-azure
> Affects Versions: 1.82.0
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Priority: Critical
> Fix For: 1.84.0
>
>
> Rotation of the {{AzureJournalFile}} is broken since the refactoring from azure v8 to v12, due to a change to the value passed in as the {{{}journalNamePrefix{}}}, when constricted via {{{}AzurePersistence{}}}, see [0].
> The problem can only be observed when a "rootPrefix" is used for the Azure segmentstore. That is why unit-tests did not detect this regression.
> The culprit is that a regexp constructed using the {{{}journalNamePrefix{}}}. However, the regexp is tested against the _filename_ derived from the journal blob's path. Thus the regexp that is used to extract the journal's index never matches, and the default index "0" is returned, see [1]. This means no journal rotation takes place.
> [0][ https://github.com/apache/jackrabbit-oak/pull/1748/files#diff-6cb64325f2cf9b91bb125fa6e38c3d3ccec612c4866fa4a6e5e6ddf188561260L89-R88|https://github.com/apache/jackrabbit-oak/pull/1748/files#diff-6cb64325f2cf9b91bb125fa6e38c3d3ccec612c4866fa4a6e5e6ddf188561260L89-R88]
> [1] [https://github.com/ierandra/jackrabbit-oak/blob/156a7c575560b0e92b046d7f468fbcd5137c0b68/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFile.java#L248-L252]
> cc [~ierandra]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)