[
https://issues.apache.org/jira/browse/HDFS-12863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akira Ajisaka updated HDFS-12863:
---------------------------------
Description: In ContainerReportManagerImpl.java,
{{OzoneClientUtils.getScmHeartbeatInterval(config)}} is called for each
container report. We should cache the interval and avoid calling
{{Configuration.get(name)}}. (was: In DataNode daemon log, the following info
message is displayed every 30 seconds:
{noformat}
2017-11-28 12:19:52,127 INFO org.apache.hadoop.conf.Configuration.deprecation:
No unit for ozone.scm.heartbeat.interval.seconds(30) assuming SECONDS
2017-11-28 12:20:22,127 INFO org.apache.hadoop.conf.Configuration.deprecation:
No unit for ozone.scm.heartbeat.interval.seconds(30) assuming SECONDS
2017-11-28 12:20:52,128 INFO org.apache.hadoop.conf.Configuration.deprecation:
No unit for ozone.scm.heartbeat.interval.seconds(30) assuming SECONDS
{noformat}
The message should be displayed once.)
> Ozone: Avoid configurartion.get() call for each container report
> ----------------------------------------------------------------
>
> Key: HDFS-12863
> URL: https://issues.apache.org/jira/browse/HDFS-12863
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Akira Ajisaka
> Assignee: Akira Ajisaka
> Priority: Minor
> Attachments: HDFS-12863-HDFS-7240.001.patch
>
>
> In ContainerReportManagerImpl.java,
> {{OzoneClientUtils.getScmHeartbeatInterval(config)}} is called for each
> container report. We should cache the interval and avoid calling
> {{Configuration.get(name)}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]