Skip to content

Conversation

@guohao-rosicky
Copy link
Contributor

HDDS-5961. [Ozone-Streaming] update the usage space of Containers in the stream write

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

@guohao-rosicky
Copy link
Contributor Author

hi @captainzmc , can you help review this patch?

@guohao-rosicky guohao-rosicky force-pushed the HDDS-4454-stream-channel branch from da03fff to 316ef1f Compare November 12, 2021 05:09
@guohao-rosicky
Copy link
Contributor Author

The old StreamDataChannel implementation did not update the usedBytes in the Container metadata at write time.
There will be multiple Container types in the future, I put the implementation of DataChannel into the Container package.

@guohao-rosicky
Copy link
Contributor Author

hi @szetszwo , can you help review this patch?

@szetszwo
Copy link
Contributor

@guohao-rosicky , I just have sync'ed the HDDS-4454 branch with master. Could you update this pull request?

@guohao-rosicky guohao-rosicky force-pushed the HDDS-4454-stream-channel branch from 316ef1f to 3b3fb1a Compare November 15, 2021 09:08
@guohao-rosicky
Copy link
Contributor Author

@szetszwo @captainzmc , I have completed the update.

@guohao-rosicky guohao-rosicky force-pushed the HDDS-4454-stream-channel branch from 3b3fb1a to 7df8c76 Compare November 15, 2021 11:56
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.

LGTM overall, Failed UT may not be caused by this pr, it can be triggered again.

Copy link
Member

Choose a reason for hiding this comment

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

Now we had updae metrics.incContainerBytesStats and containerData.updateWriteStats. Can you also add some test case? Just make sure that future changes do not affect this logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@captainzmc ,Has been modified.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

@guohao-rosicky , thanks a lot for working on this. Some comments inlined; see also https://issues.apache.org/jira/secure/attachment/13036136/2833_review.patch .

BTW, we use 4 spaces for continuation indent in Ozone. Please change the continuation indent to 4 spaces (instead of 8). Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use a new Type, say StreamWrite?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@szetszwo is container type.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove public.

Comment on lines 40 to 41
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove LOG since it is not used.

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove public.

Copy link
Contributor

Choose a reason for hiding this comment

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

Use ContainerData.

Copy link
Contributor

Choose a reason for hiding this comment

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

Use ContainerData so that we do not need to cast it when calling the constructor.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add @Override.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add default to throw UnsupportedOperationException so that the tests won't have to override it.

Comment on lines 513 to 518
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not try-catch and throws StorageContainerException in the getStreamDataChannel(..) declaration.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add @Override.

@guohao-rosicky guohao-rosicky force-pushed the HDDS-4454-stream-channel branch from 7df8c76 to b2f4cce Compare November 16, 2021 14:04
@guohao-rosicky
Copy link
Contributor Author

Has been modified, @szetszwo @captainzmc .Please Take A Look.

Copy link
Contributor

@szetszwo szetszwo 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 latest change looks good.

@szetszwo szetszwo merged commit 869f943 into apache:HDDS-4454 Nov 17, 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
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
…the stream write (#2833)

(cherry picked from commit ddc8a2c)
(cherry picked from commit 65ec5817e22a666a4fa4fe76ac5c0c1c3263865a)
szetszwo pushed a commit that referenced this pull request Nov 7, 2022
…the stream write (#2833)

(cherry picked from commit ddc8a2c)
(cherry picked from commit 65ec5817e22a666a4fa4fe76ac5c0c1c3263865a)
(cherry picked from commit 8cbadbc)
szetszwo pushed a commit that referenced this pull request Dec 1, 2022
szetszwo pushed a commit that referenced this pull request Dec 16, 2022
nishitpatira pushed a commit to nishitpatira/ozone that referenced this pull request Dec 16, 2022
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