You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/17 00:55:03 UTC
[Hadoop Wiki] Trivial Update of "HowToUseInjectionFramework" by KonstantinBoudnik
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "HowToUseInjectionFramework" page has been changed by KonstantinBoudnik.
http://wiki.apache.org/hadoop/HowToUseInjectionFramework?action=diff&rev1=9&rev2=10
--------------------------------------------------
}}}
As you can see above these two methods do the same thing. They are setting the probability level of {{{hdfs.datanode.BlockReceiver}}} at 12%. The difference, however, is that the program provides more flexibility and allows you to turn a fault off when a test no longer needs it.
+ It should be clear that random faults aren't the only possible usage scenario of fault injection. Faults might be initialized by other means as well, i.e. setting certain static variables; instantiation of some objects, etc.
+
+ ==== Could of hint ====
+ Eclipse provides very convenient environment for AspectJ development. However, as everything with Eclipse, it has some issues. Here's three simple steps how to make your project AspectJ aware:
+ * Using project property convert it to AspectJ project
+ * Re-insert 'Ant builder' as explained in EclipseEnvironment
+ * Close and re-open open the project
+ After that you suppose to have type completion, syntax highlighting, and cross-references working for both .java and .aj files.
+
==== Additional Information and Contacts ====
These two sources of information are particularly interesting and worth reading: