You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Tanuj Khurana (Jira)" <ji...@apache.org> on 2026/05/21 18:21:00 UTC

[jira] [Updated] (PHOENIX-7864) Wake idle disruptor consumer on rotation via synthetic swap event

     [ https://issues.apache.org/jira/browse/PHOENIX-7864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tanuj Khurana updated PHOENIX-7864:
-----------------------------------
    Summary: Wake idle disruptor consumer on rotation via synthetic swap event  (was: Replication log writer is not closed promptly when the consumer is idle at rotation leading to LeaseRecovery when reading)

> Wake idle disruptor consumer on rotation via synthetic swap event
> -----------------------------------------------------------------
>
>                 Key: PHOENIX-7864
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7864
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Tanuj Khurana
>            Assignee: Tanuj Khurana
>            Priority: Major
>
> ReplicationLog rotates the active LogFileWriter on a fixed cadence aligned to the reader's round boundary. The scheduled LogRotationTask creates a new writer and stages it in pendingWriter; the disruptor consumer thread completes the swap inside `apply() → checkAndReplaceWriter()`, which only runs when it processes a DATA or SYNC event. If no events arrive after the rotation tick (idle producer), the swap is deferred indefinitely. Meanwhile the reader, after its round-buffer interval (9s default), renames the file and triggers HDFS lease recovery on a writer the producer still holds open. This produces noisy
> LeaseExpiredException and a stale write pipeline



--
This message was sent by Atlassian Jira
(v8.20.10#820010)