[Mondrian] Deadlock issue

Julian Hyde julianhyde at gmail.com
Mon Nov 11 13:26:20 EST 2013


On Nov 11, 2013, at 5:30 AM, Matt Campbell <mcampbell at pentaho.com> wrote:

> By changing the "if (count==0)" in the wait block to a "while(count==0)"
> this problem appears to go away.  But, is there any reason not to switch
> to java.concurrent.Semphore?  I'm assuming we have a home-rolled
> Semaphore because it was created pre-JDK1.5.

No reason. Bugs like this are a very good reason to move to the official Semaphore. Go ahead and delete RolapUtil.Semaphore.

Julian


More information about the Mondrian mailing list