Skip to content

Conversation

@kaijchen
Copy link
Member

@kaijchen kaijchen commented Aug 4, 2021

Request for Comments

This is our streaming client implementation. It’s still in the early stages, but at least it works.
This might be a good start to discuss the design, comments are welcomed.

What changes were proposed in this pull request?

New DataStreamOutput were added, compared with OutputStream, there are some outstanding changes:

  • write(ByteBuf) methods were added, which can be used for zero buffer copy later.
  • write(byte[]) methods were kept, so these DataStreamOutput still extends OutputStream for compatibility.
  • write(ByteBuf) is perferred over write(byte[]), the latter is implemented by calling the former.
  • Zero buffer copy is not implemented yet, there is still buffer copy in BlockDataStreamOutput#write.
  • OzoneDataStreamOutput only supports KeyDataStreamOutput for now, Crypto and Cipher were dropped.

Also, we have modified the ozone shell to use the streaming api for putting large keys (length >= chunkSize).

What is the link to the Apache JIRA

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

How was this patch tested?

If this design is ok, unit tests should be added.

captainzmc and others added 30 commits June 23, 2021 23:20
@szetszwo szetszwo merged commit eab3d65 into apache:HDDS-4454 Aug 12, 2021
szetszwo pushed a commit that referenced this pull request Aug 26, 2021
szetszwo pushed a commit that referenced this pull request Sep 8, 2021
szetszwo pushed a commit that referenced this pull request Oct 1, 2021
szetszwo pushed a commit that referenced this pull request Oct 19, 2021
szetszwo pushed a commit that referenced this pull request Oct 28, 2021
szetszwo pushed a commit that referenced this pull request Nov 15, 2021
szetszwo pushed a commit that referenced this pull request Nov 30, 2021
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
@kaijchen kaijchen deleted the bytebuf-streaming-client branch February 25, 2022 02:49
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
…eam to support streaming api (#2495)

(cherry picked from commit d33d9cb)
(cherry picked from commit 18db09d7d4e20f020b9fe2a73d9daac97b2ce51c)
szetszwo pushed a commit that referenced this pull request Nov 7, 2022
…eam to support streaming api (#2495)

(cherry picked from commit d33d9cb)
(cherry picked from commit 18db09d7d4e20f020b9fe2a73d9daac97b2ce51c)
(cherry picked from commit 0952195)
szetszwo pushed a commit that referenced this pull request Dec 1, 2022
…eam to support streaming api (#2495)

(cherry picked from commit e6be97e)
szetszwo pushed a commit that referenced this pull request Dec 16, 2022
…eam to support streaming api (#2495)

(cherry picked from commit e6be97e)
nishitpatira pushed a commit to nishitpatira/ozone that referenced this pull request Dec 16, 2022
…eam to support streaming api (apache#2495)

(cherry picked from commit e6be97e)
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.

4 participants