[#1189][FOLLOWUP] fix(server): Start NettyDirectMemoryTracker. - #1432
Conversation
|
@lifeSo Could you help review this pr? |
|
All is ok, but could add unit test case to test the tracker ? |
|
What is the difference between the two PlatformDependent? |
| import java.util.concurrent.TimeUnit; | ||
|
|
||
| import io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent; | ||
| import io.netty.util.internal.PlatformDependent; |
There was a problem hiding this comment.
What is the difference between the two PlatformDependent?
Or is there problem using 'io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent'
There was a problem hiding this comment.
What is the difference between the two PlatformDependent?
Or is there problem using 'io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent'
| initMetricsReporter(); | ||
|
|
||
| registerHeartBeat.startHeartBeat(); | ||
| directMemoryUsageReporter.start(); |
There was a problem hiding this comment.
Could add test unit case to test the funcation of directMemoryUsageReporter?
Or I could try later.
| initMetricsReporter(); | ||
|
|
||
| registerHeartBeat.startHeartBeat(); | ||
| directMemoryUsageReporter.start(); |
There was a problem hiding this comment.
Could add test unit case to test the funcation of directMemoryUsageReporter?
Or I could try later.
@rickyma
When using Netty in the code, we should always use the |
Please add the unit tests, thank you. |
OK, get it. Could add test unit case to test the funcation of directMemoryUsageReporter? |
|
@lifeSo Can you approve this PR? You can add UTs later. This PR is only for starting NettyDirectMemoryTracker. |
lifeSo
left a comment
There was a problem hiding this comment.
The commit is great and i think no problem.
If add test case in future is ok. @jerqi


What changes were proposed in this pull request?
Fix PR #1363.
NettyDirectMemoryTracker will not be started currently.
Why are the changes needed?
It's a followup PR for #1363.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UTs.