Issue Details (XML | Word | Printable)

Key: HADOOP-2818
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Amareshwari Sriramadasu
Reporter: Amareshwari Sriramadasu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Remove deprecated Counters.getDisplayName(), getCounterNames(), getCounter(String counterName)

Created: 14/Feb/08 05:32 AM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: 0.16.0
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-2818.txt 2008-03-26 09:18 AM Amareshwari Sriramadasu 4 kB
Issue Links:
Reference
 

Hadoop Flags: Incompatible change
Release Note:
The deprecated methods public String org.apache.hadoop.mapred.Counters.getDisplayName(String counter) and
public synchronized Collection<String> org.apache.hadoop.mapred.Counters.getCounterNames() are removed.
The deprecated method public synchronized long org.apache.hadoop.mapred.Counters.getCounter(String counterName) is undeprecated.
Resolution Date: 01/Apr/08 09:11 AM


 Description  « Hide
Counters.getDisplayName(), getCounterNames(), getCounter(String counterName) need to removed as they are deprecated in 0.16.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Amareshwari Sriramadasu added a comment - 26/Mar/08 08:44 AM
I think we can undeprecate Counters.Group.getCounter(String counterName)), because, if we remove that method, even if we already know the counterName, there is no other way to get the counter value otherthan iterating again.
For ex. You may want to know the counter values in 3 groups simultaneously with a given counterName, all three groups have to be iterated if we remove this method.

Amareshwari Sriramadasu added a comment - 26/Mar/08 09:18 AM
Here is patch removing Counters.Group.getDisplayName(String counter) and Counters.Group.getCounterNames().

Hadoop QA added a comment - 26/Mar/08 10:51 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12378617/patch-2818.txt
against trunk revision 619744.

@author +1. The patch does not contain any @author tags.

tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests +1. The patch passed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2060/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2060/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2060/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2060/console

This message is automatically generated.


Amareshwari Sriramadasu added a comment - 26/Mar/08 11:09 AM
This patch doesnt require a testcase as it removes deprecated methods.

Tom White added a comment - 01/Apr/08 09:11 AM
I've just committed this. Thanks Amareshwari!

Robert Chansler added a comment - 14/Apr/08 04:30 PM
Noted as incompatible in changes.txt