Uh oh!
There was an error while loading. Please reload this page.
HDDS-5961. [Ozone-Streaming] update the usage space of Containers in … - #2833
Conversation
guohao-rosicky
commented
Nov 12, 2021
hi @captainzmc , can you help review this patch? |
da03fff to
316ef1fCompareguohao-rosicky
commented
Nov 12, 2021
The old StreamDataChannel implementation did not update the usedBytes in the Container metadata at write time. |
guohao-rosicky
commented
Nov 12, 2021
hi @szetszwo , can you help review this patch? |
szetszwo
commented
Nov 15, 2021
@guohao-rosicky , I just have sync'ed the HDDS-4454 branch with master. Could you update this pull request? |
316ef1f to
3b3fb1aCompareguohao-rosicky
commented
Nov 15, 2021
@szetszwo@captainzmc , I have completed the update. |
3b3fb1a to
7df8c76Compare
captainzmc
left a comment
There was a problem hiding this comment.
LGTM overall, Failed UT may not be caused by this pr, it can be triggered again.
There was a problem hiding this comment.
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.
szetszwo
left a comment
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
Let's use a new Type, say StreamWrite?
There was a problem hiding this comment.
Remove LOG since it is not used.
There was a problem hiding this comment.
Use ContainerData so that we do not need to cast it when calling the constructor.
There was a problem hiding this comment.
Add default to throw UnsupportedOperationException so that the tests won't have to override it.
There was a problem hiding this comment.
Do not try-catch and throws StorageContainerException in the getStreamDataChannel(..) declaration.
7df8c76 to
b2f4cceCompareguohao-rosicky
commented
Nov 17, 2021
Has been modified, @szetszwo@captainzmc .Please Take A Look. |
szetszwo
left a comment
There was a problem hiding this comment.
+1 the latest change looks good.
…the stream write (apache#2833) (cherry picked from commit 7290ff9)
HDDS-5961. [Ozone-Streaming] update the usage space of Containers in the stream write
jira: https://issues.apache.org/jira/browse/HDDS-5961