2 dirs in exclusiveAccess.dirs cannot run at the same time

Jonathan Gibbons jonathan.gibbons at oracle.com
Fri Jul 3 21:31:39 UTC 2015


On 07/03/2015 03:05 AM, Weijun Wang wrote:
> If I have 4 tests
>
>    a/A1, a/A2, b/B1, b/B2
>
> and set
>
>    exclusiveAccess.dirs=a b
>
> all 4 tests must run one by one. Why?
>
> My understanding is each dir in this set has its own "exclusive" 
> resource that can only be accessed by one test (inside this dir), but 
> different dirs are not related. Therefore although A1 and A2 cannot 
> run at the same time, A1 and B1 should.
>
> Thanks
> Max

Max,

IIRC, that is the spec we came up with. There is no presumption of 
binding a directory to an exclusive resource.  There is a single lock 
for all tests that need exclusive access to some/any shared resource.

-- Jon


More information about the jtreg-dev mailing list