Review Board 1.7.22


PIG-3096 Make PigUnit thread safe

Review Request #8631 - Created Dec. 17, 2012 and submitted

Cheolsoo Park
PIG-3096
Reviewers
pig
sms
pig-git
Currently, PigUnit is not thread-safe because Cluster and PigServer are declared as static. Converting them to ThreadLocal allows PigUnit to run in multi-threaded environment.
ant test -Dtestcase=TestPigTest

I also tested it by running multiple PigUnit cases in parallel with tempus-fugit (http://tempusfugitlibrary.org/documentation/junit/parallel/) on a real cluster.
Review request changed
Updated (June 4, 2013, 4:16 p.m.)
  • changed from pending to submitted