Tanuj Khurana created PHOENIX-7864:
--------------------------------------

             Summary: Replication log writer is not closed promptly when the 
consumer is idle at rotation leading to LeaseRecovery when reading
                 Key: PHOENIX-7864
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7864
             Project: Phoenix
          Issue Type: Sub-task
            Reporter: Tanuj Khurana
            Assignee: Tanuj Khurana


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)

Reply via email to