hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Oriani (JIRA) <j...@apache.org>
Subject [jira] Commented: (HDFS-1031) Enhance the webUi to list a few of the corrupted files in HDFS
Date Tue, 20 Apr 2010 09:39:07 GMT

    [ https://issues.apache.org/jira/browse/HDFS-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858718#action_12858718
] 

André Oriani commented on HDFS-1031:
------------------------------------

One doubt regarding sorting the output. On my work, l10n is a daily concern, so I pay attention
to that when coding.
We're going to compare Paths. Path.compareTo method delegates its implementation to java.net.URI.compareTo,
which uses String.compareTo for path elements. That method of String class does not uses collation.

So for the program:

{code}
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Arrays;

public class PathComparisons {
	public static void main(String[] args) {
		try {
			URI paths[] = { new URI("file:///b/a"), new URI("file:///a/c"),
					new URI("file:///a/b"), new URI("file:///b/z"),
					new URI("file:///a/á"), new URI("file:///b/ç"),
					new URI("file:///a/b/c/d/e")};
			Arrays.sort(paths);
			for (URI path : paths) {System.out.println(path.toString());}
		} catch (URISyntaxException e) {
		}
	}
}
{code}

The output is 
{noformat}
file:///a/b
file:///a/b/c/d/e
file:///a/c
file:///a/á
file:///b/a
file:///b/z
file:///b/ç
{noformat}

I mean , the character order is {a,b,z,á,ç} instead of  an expected {a,á,b,c,ç,z}
 
Should I handle this or treat it as a minor side-effect ?


> Enhance the webUi to list a few of the corrupted files in HDFS
> --------------------------------------------------------------
>
>                 Key: HDFS-1031
>                 URL: https://issues.apache.org/jira/browse/HDFS-1031
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: dhruba borthakur
>            Assignee: André Oriani
>         Attachments: hdfs-1031_aoriani.patch, hdfs-1031_aoriani_2.patch, hdfs-1031_aoriani_3.patch
>
>
> The existing webUI displays something like this:
> WARNING : There are about 12 missing blocks. Please check the log or run fsck. 
> It would be nice if we can display the filenames that have missing blocks. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message