[
https://issues.apache.org/jira/browse/HDFS-11290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15825712#comment-15825712
]
Akira Ajisaka commented on HDFS-11290:
--------------------------------------
Thanks [~xkrogen] for providing a patch. Mostly looks good to me.
{code}
+ new ConfigBuilder().add("namenode.period", jmxCachePeriod)
+ .save("hadoop-metrics2.properties");
{code}
Would you use {{TestMetricsConfig.getTestFilename}} to generate the metrics
config file to {{hadoop-hdfs-project/hadoop-hdfs/target/test-class}}? I'm +1 if
that is addressed.
> TestFSNameSystemMBean should wait until the cache is cleared
> ------------------------------------------------------------
>
> Key: HDFS-11290
> URL: https://issues.apache.org/jira/browse/HDFS-11290
> Project: Hadoop HDFS
> Issue Type: Test
> Components: test
> Affects Versions: 2.8.0
> Reporter: Akira Ajisaka
> Assignee: Erik Krogen
> Attachments: HDFS-11290.000.patch
>
>
> TestFSNamesystemMBean#testWithFSNamesystemWriteLock and
> #testWithFSEditLogLock get metrics after locking FSNameSystem/FSEditLog, but
> when the metrics are cached, the tests success even if the metrics acquire
> the locks. The tests should wait until the cache is cleared.
> This issue was reported by [~xkrogen] in HDFS-11180.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]