You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Huang Guan Hao (Jira)" <ji...@apache.org> on 2025/12/20 03:06:00 UTC

[jira] [Commented] (HDDS-14217) Reconciler should not cast BlockExtendedInputStream to BlockInputStream

    [ https://issues.apache.org/jira/browse/HDDS-14217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046783#comment-18046783 ] 

Huang Guan Hao commented on HDDS-14217:
---------------------------------------

I think the resolution is to disable stream read during reconciliation and force using BlockInputStream, since reconciliation needs chunk-level access which StreamBlockInputStream doesn't support.
If this is correct, could I try this issue?

> Reconciler should not cast BlockExtendedInputStream to BlockInputStream 
> ------------------------------------------------------------------------
>
>                 Key: HDDS-14217
>                 URL: https://issues.apache.org/jira/browse/HDDS-14217
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Datanode
>            Reporter: Tsz-wo Sze
>            Priority: Major
>
> In KeyValueHandler.reconcileChunksPerBlock(..), it creates a BlockExtendedInputStream using a factory and then cast it to BlockInputStream for accessing block data. The casting won't work if we enable the new StreamBlockInputStream (HDDS-10338).
>  - See [https://github.com/apache/ozone/pull/7474#discussion_r2590245883]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org