You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/03/05 16:10:00 UTC
[jira] [Commented] (YARN-11415) Refactor TestConfigurationFieldsBase and the connected test classes
[ https://issues.apache.org/jira/browse/YARN-11415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696583#comment-17696583 ]
ASF GitHub Bot commented on YARN-11415:
---------------------------------------
szilard-nemeth opened a new pull request, #5454:
URL: https://github.com/apache/hadoop/pull/5454
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
### How was this patch tested?
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
> Refactor TestConfigurationFieldsBase and the connected test classes
> -------------------------------------------------------------------
>
> Key: YARN-11415
> URL: https://issues.apache.org/jira/browse/YARN-11415
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Benjamin Teke
> Assignee: Szilard Nemeth
> Priority: Major
>
> YARN-11413 pointed out a strange way of how the configuration tests are executed. The first problem is that there is a [Pattern|https://github.com/apache/hadoop/blob/570b503e3e7e7adf5b0a8fabca76003298216543/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationFieldsBase.java#L197], that matches only numbers, letters, dots, hyphens and underscores, but not %, which is used in string replacements (i.e {{yarn.nodemanager.aux-services.%s.classpath}} ), so essentially every property that's present in any configuration object and doesn't match this pattern is silently skipped, and documenting it will result in invalid test failures, ergo the test encourages introducing props and not documenting them. The pattern should be fixed in YARN-11413 for %s, but it's necessity could be checked.
> Another issue with this is that it works in a semi-opposite way of what it's supposed to do. To ensure all of the configuration entries are documented it should iterate through all of the configuration fields and check if those have matching xyz-default.xml entries, but currently it just reports the entries that are present in the xyz-default.xml and missing in the matching configuration file. Since this test checks all the configuration objects this might need some other follow-ups to document the missing properties from other components if there are any.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org