[
https://issues.apache.org/jira/browse/HDFS-10766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425111#comment-15425111
]
Arpit Agarwal commented on HDFS-10766:
--------------------------------------
Thank you for the clarification. I see what you are trying to do. You want to
suppress any exceptions thrown in the finally block.
Can you please fix the formatting? Also I'd recommend logging a short exception
message at info level since exceptions thrown in the finally block are not as
useful i.e.
{code}
LOG.info("Registry not enabled error " + e);
{code}
We can log the full stack trace at debug optionally.
> Request short circuit access failed
> -----------------------------------
>
> Key: HDFS-10766
> URL: https://issues.apache.org/jira/browse/HDFS-10766
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: logging
> Environment: HDP-2.4
> Reporter: Karthik Palanisamy
> Assignee: Karthik Palanisamy
> Priority: Minor
> Labels: patch
> Attachments: HDFS-10766-1.patch
>
>
> There was some error while creating requestShortCircuitFdsForRead and the
> exception is thrown when logging the info message
> {quote}
> In this scenario, the actual exception was lost
> {quote}
> To get the actual exception message it needs to be handled properly.
> 2016-07-25 13:11:54,323 ERROR datanode.DataNode (DataXceiver.java:run(278)) -
> xyz.com:50010:DataXceiver error processing REQUEST_SHORT_CIRCUIT_FDS
> operation src: unix:/var/lib/hadoop-hdfs/dn_socket dst: <local>
> org.apache.hadoop.fs.InvalidRequestException: there is no shared memory
> segment registered with shmId 0773fa8b13b4643cb5be98893af5a873
> at
> org.apache.hadoop.hdfs.server.datanode.ShortCircuitRegistry.unregisterSlot(ShortCircuitRegistry.java:371)
>
> at
> org.apache.hadoop.hdfs.server.datanode.DataXceiver.requestShortCircuitFds(DataXceiver.java:364)
>
> at
> org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.opRequestShortCircuitFds(Receiver.java:187)
>
> at
> org.apache.hadoop.hdfs.protocol.datatransfer.Receiver.processOp(Receiver.java:89)
>
> at
> org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:251)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]