-
Notifications
You must be signed in to change notification settings - Fork 168
[#1189][FOLLOWUP] fix(server): Start NettyDirectMemoryTracker. #1432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
lifeSo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between the two PlatformDependent?
Or is there problem using 'io.grpc.netty.shaded.io.netty.util.internal.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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could add test unit case to test the funcation of directMemoryUsageReporter?
Or I could try later.
@rickyma
lifeSo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could add test unit case to test the funcation of directMemoryUsageReporter?
Or I could try later.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit is great and i think no problem.
If add test case in future is ok. @jerqi
jerqi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


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.