[
https://issues.apache.org/jira/browse/HDDS-17685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-17685:
------------------------------
Description:
Claude:
- Lease recovery. LeaseRecoveryClientDNHandler sets the last block's length
from a single datanode, via finalizeBlock or getCommittedBlockLength. For a
CHAINED block it must use the all-acked length, e.g. the minimum across
replicas. Otherwise the recovered key length can exceed what a shorter replica
holds. FinalizeBlock is also a Raft write today, so a CHAINED pipeline needs a
non-Raft path, such as a stream command or a direct call to each replica.
- Lease recovery needs the all-acked length, either the minimum across replicas
or the length OM recorded at hsync. It also needs a non-Raft replacement for
FinalizeBlock, which is a Raft write today.
was:
Claude:
Lease recovery. LeaseRecoveryClientDNHandler sets the last block's length from
a single datanode, via finalizeBlock or getCommittedBlockLength. For a CHAINED
block it must use the all-acked length, e.g. the minimum across replicas.
Otherwise the recovered key length can exceed what a shorter replica holds.
FinalizeBlock is also a Raft write today, so a CHAINED pipeline needs a
non-Raft path, such as a stream command or a direct call to each replica.
> Use the all-acked length for CHAINED blocks in lease recovery.
> --------------------------------------------------------------
>
> Key: HDDS-17685
> URL: https://issues.apache.org/jira/browse/HDDS-17685
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Tsz-wo Sze
> Priority: Major
>
> Claude:
> - Lease recovery. LeaseRecoveryClientDNHandler sets the last block's length
> from a single datanode, via finalizeBlock or getCommittedBlockLength. For a
> CHAINED block it must use the all-acked length, e.g. the minimum across
> replicas. Otherwise the recovered key length can exceed what a shorter
> replica holds. FinalizeBlock is also a Raft write today, so a CHAINED
> pipeline needs a non-Raft path, such as a stream command or a direct call to
> each replica.
> - Lease recovery needs the all-acked length, either the minimum across
> replicas or the length OM recorded at hsync. It also needs a non-Raft
> replacement for FinalizeBlock, which is a Raft write today.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]