You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/11/19 20:03:14 UTC
[GitHub] [ozone] smengcl commented on pull request #1601: HDDS-4404. Datanode can go OOM when a Recon or SCM Server is very slow in processing reports
smengcl commented on pull request #1601:
URL: https://github.com/apache/ozone/pull/1601#issuecomment-730605471
UT `TestStateContext#testReportAPIs` is not happy with my change in `StateContext#addReport`:
https://github.com/apache/ozone/blob/a4f7e32b438a1ac74e23f70be3b24aac9a61e00c/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/TestStateContext.java#L68
Mocked object `GeneratedMessage report` is fed to `addReport()`, so `report.getDescriptorForType()` returns `null`. As a result `report.getDescriptorForType().getFullName()` throws NPE in the UT.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org