jaydoane edited a comment on issue #2109: fixup for dreyfus_fabric_cleanup:go/1
URL: https://github.com/apache/couchdb/pull/2109#issuecomment-520995699
 
 
   Without clouseau running, I get an error when testing:
   ```
   (node1@127.0.0.1)3> dreyfus_fabric_cleanup:go(<<"_global_changes">>).
   ** exception error: no match of right hand side value {'EXIT',noconnection}
        in function  dreyfus_fabric_cleanup:cleanup_local_purge_doc/2 
(src/dreyfus_fabric_cleanup.erl, line 41)
        in call from dreyfus_fabric_cleanup:go/1 
(src/dreyfus_fabric_cleanup.erl, line 28)
   ```
   because of this line:
   ```
   (node1@127.0.0.1)4> clouseau_rpc:get_root_dir().
   {'EXIT',noconnection}
   ```
   
   I started a clouseau instance using `mvn scala:run -Dlauncher=clouseau1` and 
then 
   ```
   (node1@127.0.0.1)9> net_adm:ping('clouseau1@127.0.0.1').
   pong
   (node1@127.0.0.1)14> config:set("dreyfus", "name", "clouseau1@127.0.0.1", 
false).
   ok
   ```
   and am able to successfully test:
   ```
   (node1@127.0.0.1)16> clouseau_rpc:get_root_dir().
   {ok,<<"/Users/jay/proj/ibm/repos/clouseau/target/clouseau1">>}
   (node1@127.0.0.1)17> dreyfus_fabric_cleanup:go(<<"_global_changes">>).
   ok
   ```
   which shows the following on the clouseau console:
   ```
   2019-08-13 13:21:59 clouseau.main [INFO] Clouseau running as 
clouseau1@127.0.0.1
   2019-08-13 13:42:18 clouseau.cleanup [INFO] Cleaning up _global_changes
   ```
   ```

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


With regards,
Apache Git Services

Reply via email to