[ 
https://issues.apache.org/jira/browse/WAVE-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466428#comment-13466428
 ] 

Lamu Guo commented on WAVE-308:
-------------------------------

As a newbie of wave, I took a look at the code and guess it may possible 
related to different lock impl in OS level.

For guys can reporduce this problem, possible to add log for acquireReadLock() 
/ releaseReadLock() / acquireWriteLock() / releaseWriteLock() like below and 
post the log in testing.

  protected void acquireReadLock() {
    LOG.info("try to get readlock");
    readLock.lock();
    LOG.info("succeed in getting readlock");
  }

  protected void releaseReadLock() {
    LOG.info("try to release readlock");
    readLock.unlock();
    LOG.info("succeed in releasing readlock");
  }

  protected void acquireWriteLock() {
    LOG.info("try to get writelock");
    writeLock.lock();
    LOG.info("succeed in getting writelock");
  }

  protected void releaseWriteLock() {
    LOG.info("try to release writelock");
    writeLock.unlock();
    LOG.info("succeed in releasing writelock");
  }

Just my 2-cent, not sure whether it is helpful to the bug.

                
> WaveServerTest testWaveletNotification failure
> ----------------------------------------------
>
>                 Key: WAVE-308
>                 URL: https://issues.apache.org/jira/browse/WAVE-308
>             Project: Wave
>          Issue Type: Bug
>          Components: Server
>            Reporter: Witold Baryluk
>         Attachments: 
> TEST-org.waveprotocol.box.server.waveserver.WaveServerTest.xml
>
>
> Hello, again.
> I find failure of single test, which prevents building wave server.
> I was testing revision 1206689.
> It looks to be regression (it wasn't failing on this test few days ago)
> Class: WaveServerTest
> Name: testWaveletNotification
> Status: Error
> Type:
> Wanted but not invoked: notifiee.waveletCommitted( [WaveletName 
> example.com/abc123/example.com/conv+root], <any>, [example.com] ); -> at 
> org.waveprotocol.box.server.waveserver.WaveServerTest.testWaveletNotification(WaveServerTest.java:145)
>  However, there were other interactions with this mock: -> at 
> org.waveprotocol.box.server.waveserver.WaveMap.<init>(WaveMap.java:625) -> at 
> org.waveprotocol.box.server.waveserver.WaveletContainerImpl.notifyOfDeltas(WaveletContainerImpl.java:180)
>  
> Wanted but not invoked:
> notifiee.waveletCommitted(
>  [WaveletName example.com/abc123/example.com/conv+root],
>  <any>,
>  [example.com]
> );
> -> at 
> org.waveprotocol.box.server.waveserver.WaveServerTest.testWaveletNotification(WaveServerTest.java:145)
> However, there were other interactions with this mock:
> -> at org.waveprotocol.box.server.waveserver.WaveMap.<init>(WaveMap.java:625)
> -> at 
> org.waveprotocol.box.server.waveserver.WaveletContainerImpl.notifyOfDeltas(WaveletContainerImpl.java:180)
>  at 
> org.waveprotocol.box.server.waveserver.WaveServerTest.testWaveletNotification(WaveServerTest.java:145)
> Time (s):     0.104
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to