You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/04/13 13:10:40 UTC

[GitHub] eiri opened a new issue #1282: Test suite mem3_shards occasionally failing.

eiri opened a new issue #1282: Test suite mem3_shards occasionally failing.
URL: https://github.com/apache/couchdb/issues/1282
 
 
   Once in a while mem3_sync_event_listener test failing
   
   ## Expected Behavior
   
   The mem3 tests should always pass.
   
   ## Current Behavior
   
   Occasionally the tests are failing with 
   
   ```
    mem3_shards:679: t_cache_insert_ignores_stale_update_and_kills_worker...ok
     Test mem3_shards changes listener
       mem3_shards:754: should_kill_changes_listener_on_shutdown...*failed*
   in function mem3_shards:'-should_kill_changes_listener_on_shutdown/1-fun-1-'/1 (src/mem3_shards.erl, line 757)
   in call from mem3_shards:'-should_kill_changes_listener_on_shutdown/1-fun-4-'/1 (src/mem3_shards.erl, line 757)
   **error:{assertion_failed,[{module,mem3_shards},
                      {line,757},
                      {expression,"is_process_alive ( ChangesPid )"},
                      {expected,true},
                      {value,false}]}
   
   
       [done in 0.003 s]
     [done in 1.471 s]
   ```
   
   It seems there are a race in mem3_sync_event_listener's setup/teardown, though it's not easy to consistently reproduce.
   
   ## Possible Solution
   
   We need to find where the race is happening and switch that place to sync.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services