[
https://issues.apache.org/jira/browse/HDFS-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131976#comment-13131976
]
Konstantin Boudnik commented on HDFS-2452:
------------------------------------------
Thanks for fixing aspect code Uma - I was doing it in a hassle last night and
did a suboptimal job apparently.
Aspects should be injected in 'injectfaults' target which is called by the test
target. You don't need to have anything else to make it happen: all components
of AOP framework are in place by default.
I have applied your patch and ran the test and I see that injected code is
working as expected. I see many OOM errors thrown from a huge number of the
DataXceiver threads like this
{noformat}
[junit] Exception in thread
"org.apache.hadoop.hdfs.server.datanode.DataXceiver@7e3feb83"
java.lang.OutOfMemoryError: Pretend there's no more memory
[junit] at
org.apache.hadoop.hdfs.server.datanode.DataXceiverAspects.ajc$before$org_apache_hadoop_hdfs_server_datanode_DataXceiverAspects$1$1a38ea(DataXceiverAspects.aj:36)
[junit] at
org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:120)
[junit] at java.lang.Thread.run(Thread.java:680)
[junit] Exception in thread
"org.apache.hadoop.hdfs.server.datanode.DataXceiver@29b18dc0"
java.lang.OutOfMemoryError: Pretend there's no more memory
[junit] at
org.apache.hadoop.hdfs.server.datanode.DataXceiverAspects.ajc$before$org_apache_hadoop_hdfs_server_datanode_DataXceiverAspects$1$1a38ea(DataXceiverAspects.aj:36)
[junit] at
org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:120)
[junit] at java.lang.Thread.run(Thread.java:680)
{noformat}
> OutOfMemoryError in DataXceiverServer takes down the DataNode
> -------------------------------------------------------------
>
> Key: HDFS-2452
> URL: https://issues.apache.org/jira/browse/HDFS-2452
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Uma Maheswara Rao G
> Fix For: 0.22.0
>
> Attachments: HDFS-2452-22Branch.2.patch, HDFS-2452-22branch.1.patch,
> HDFS-2452-22branch.patch, HDFS-2452-22branch.patch, HDFS-2452-22branch.patch,
> HDFS-2452-22branch.patch
>
>
> OutOfMemoryError brings down DataNode, when DataXceiverServer tries to spawn
> a new data transfer thread.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira