Skip to content

Conversation

@sadanand48
Copy link
Contributor

What changes were proposed in this pull request?

Currently, putBlock call gets executed only during close() when a block is written. The aim here is to have a putBlock boundary similar to async path where the putBlock gets executed which updates the key length and help reduce some memory on client. The default boundary here is set at 32 MB where a putBlock is executed. Also a limit is set on the ByteBuffer size the client can send here (4mb).

What is the link to the Apache JIRA

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

How was this patch tested?

Unit test

@sadanand48 sadanand48 marked this pull request as ready for review November 23, 2021 11:49
Copy link
Member

Choose a reason for hiding this comment

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

Did we need add updateFlushLength(), waitOnFlushFutures() and watchForCommit(false) here? Just as what we did in handleFlush. Currently we only releaseBuffers after watchForCommit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @captainzmc for the comment. The plan here is to execute a putBlock at 32MB and not block the client right away by waiting for the flush futures and calling watchForCommit. We will introduce another boundary say at 64MB to check whether atleast 32MB is flushed and committed to all datanodes i.e watchForCommit() and waitForFlushFutures() will occur at 64mb. (I will add this is in a different patch after this PR)

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for explaining, make sense.

Sadanand Shenoy added 4 commits November 30, 2021 14:59
…ites.

(cherry picked from commit 4406ecf99c38b14c6a0260a933df2fde954e5b99)
(cherry picked from commit 1fcac2916ce5c1b1060edcef3714c8ec43bc6605)
(cherry picked from commit a0eca8d0b1daa04bd0d9c1850584edf935b16162)
(cherry picked from commit f0858e58cb214c1f5792ff54f1d26b72066359d1)
@sadanand48 sadanand48 changed the title HDDS-5851. Define a PutBlock/maxBuffer fixed boundary for streaming writes. HDDS-5851. [Ozone-Streaming] Define a PutBlock/maxBuffer fixed boundary for streaming writes. Nov 30, 2021
Copy link
Member

@captainzmc captainzmc left a comment

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.

@bshashikant bshashikant merged commit 99ddf5a into apache:HDDS-4454 Dec 1, 2021
@bshashikant
Copy link
Contributor

Thanks @sadanand48 for the contribution.

captainzmc pushed a commit that referenced this pull request Dec 20, 2021
szetszwo pushed a commit that referenced this pull request Dec 30, 2021
szetszwo pushed a commit that referenced this pull request Jan 20, 2022
captainzmc pushed a commit that referenced this pull request Feb 9, 2022
szetszwo pushed a commit that referenced this pull request Feb 16, 2022
szetszwo pushed a commit that referenced this pull request Mar 15, 2022
szetszwo pushed a commit that referenced this pull request Mar 24, 2022
szetszwo pushed a commit to szetszwo/ozone that referenced this pull request May 6, 2022
szetszwo pushed a commit that referenced this pull request May 13, 2022
szetszwo pushed a commit that referenced this pull request May 24, 2022
szetszwo pushed a commit that referenced this pull request Jun 9, 2022
captainzmc pushed a commit to captainzmc/hadoop-ozone that referenced this pull request Jul 4, 2022
szetszwo pushed a commit that referenced this pull request Oct 25, 2022
…ry for streaming writes. (#2866)

(cherry picked from commit 7a6ea80)
(cherry picked from commit 3b9141e18d42555ccc62f7c9718b96fd8b88e55f)
szetszwo pushed a commit that referenced this pull request Nov 7, 2022
…ry for streaming writes. (#2866)

(cherry picked from commit 7a6ea80)
(cherry picked from commit 3b9141e18d42555ccc62f7c9718b96fd8b88e55f)
(cherry picked from commit eb441a8)
szetszwo pushed a commit that referenced this pull request Dec 1, 2022
…ry for streaming writes. (#2866)

(cherry picked from commit 9d5ccb3)
szetszwo pushed a commit that referenced this pull request Dec 16, 2022
…ry for streaming writes. (#2866)

(cherry picked from commit 9d5ccb3)
nishitpatira pushed a commit to nishitpatira/ozone that referenced this pull request Dec 16, 2022
…ry for streaming writes. (apache#2866)

(cherry picked from commit 9d5ccb3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants