Skip to content

HDDS-14217. Reconciler should not cast BlockExtendedInputStream to BlockInputStream#9589

Merged
aswinshakil merged 1 commit into
apache:masterfrom
aswinshakil:HDDS-14217
Jan 6, 2026
Merged

HDDS-14217. Reconciler should not cast BlockExtendedInputStream to BlockInputStream#9589
aswinshakil merged 1 commit into
apache:masterfrom
aswinshakil:HDDS-14217

Conversation

@aswinshakil

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

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. Instead, explicitly return BlockInputStream using a new createBlockInputStream() function.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14217

How was this patch tested?

Existing tests.

@szetszwo szetszwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@aswinshakil

Copy link
Copy Markdown
Member Author

@szetszwo Thanks for the review.

@aswinshakil aswinshakil merged commit 10ea33b into apache:master Jan 6, 2026
43 checks passed
@errose28

errose28 commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Thanks @aswinshakil and @szetszwo for the improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants