Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # dev >> Review Request: PIG-3096 Make PigUnit thread safe

Copy link to this message
Review Request: PIG-3096 Make PigUnit thread safe

This is an automatically generated e-mail. To reply, visit:

Review request for pig and Santhosh Srinivasan.

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.
This addresses bug PIG-3096.

  test/org/apache/pig/pigunit/PigTest.java 50a5c79

Diff: https://reviews.apache.org/r/8631/diff/

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.

Cheolsoo Park

Bill Graham 2012-12-19, 01:14