You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Dmytro Molkov (JIRA)" <ji...@apache.org> on 2010/03/11 04:29:27 UTC
[jira] Updated: (HDFS-1024) SecondaryNamenode fails to checkpoint
because namenode fails with CancelledKeyException
[ https://issues.apache.org/jira/browse/HDFS-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmytro Molkov updated HDFS-1024:
--------------------------------
Attachment: HDFS-1024.patch
Since the image file can bee too long sometimes Content-Length is not set, instead it sets Transfer-Encoding: chunked
I am setting Content-Length manually in the servlet now.
One thing to note here, there is a response.setContentLength(int) method, but taking int as a parameter it will not work, since many images are over 2Gb in size. So I am setting it as a general HTTP header.
On the client side once the read is over we check if the number of bytes we read is equal to advertised in the Content-Length and throw if it is not.
> SecondaryNamenode fails to checkpoint because namenode fails with CancelledKeyException
> ---------------------------------------------------------------------------------------
>
> Key: HDFS-1024
> URL: https://issues.apache.org/jira/browse/HDFS-1024
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.20.2
> Reporter: dhruba borthakur
> Assignee: Dmytro Molkov
> Attachments: HDFS-1024.patch
>
>
> The secondary namenode fails to retrieve the entire fsimage from the Namenode. It fetches a part of the fsimage but believes that it has fetched the entire fsimage file and proceeds ahead with the checkpointing. Stack traces will be attached below.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.