use Serialization framework to change all add input methods to serialize,
deserialize to do defensive copying into input lists
------------------------------------------------------------------------------------------------------------------------------
Key: MRUNIT-95
URL: https://issues.apache.org/jira/browse/MRUNIT-95
Project: MRUnit
Issue Type: Improvement
Affects Versions: 0.9.0
Reporter: Jim Donofrio
Priority: Minor
Use Serialization framework to change all add input methods to serialize,
deserialize to do defensive copying into input lists. This will prevent users
from modifying input objects by accident and then having a test fail. The one
problem is ideally this defensive copying would be done when the user calls
addInput. The problem is dealing with custom serializations that require a
setting in the conf. Users would have to make sure to set the property in the
conf before adding any input, this may break some existing test programs. I
guess we can just throw a meaningful exception in the add method when we cannot
serialize, deserialize. Any thoughts?
Also deprecate and eventually remove getInputValues method in ReduceDriverBase
to prevent access to the input list.
--
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