[
https://issues.apache.org/jira/browse/HADOOP-10946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141725#comment-14141725
]
Chris Nauroth commented on HADOOP-10946:
----------------------------------------
bq. Would it make sense in the future to expose these sorts of strings (e.g.
log messages) as "public static final" for use in unit tests that need to do
this sort of comparison?
I think this is situational. Sometimes a string is part of the contract on a
public interface (i.e. a WebHDFS JSON key). In those situations, there might
actually be value in the unit test repeating the string. This way, you can
catch problems in code changes that accidentally broke the contract, say by
renaming the key. For something like this though, there really isn't a public
contract around this log message, so a constant could help make the test less
brittle.
> Fix a bunch of typos in log messages
> ------------------------------------
>
> Key: HADOOP-10946
> URL: https://issues.apache.org/jira/browse/HADOOP-10946
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 3.0.0, 2.4.1
> Reporter: Ray Chiang
> Assignee: Ray Chiang
> Priority: Trivial
> Labels: newbie
> Fix For: 2.6.0
>
> Attachments: HADOOP-10946-04.patch, HADOOP-10946-05.patch,
> HADOOP-10946-06.patch, HADOOP10946-01.patch, HADOOP10946-02.patch,
> HADOOP10946-03.patch
>
>
> There are a bunch of typos in various log messages. These need cleaning up.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)