[
https://issues.apache.org/jira/browse/COUCHDB-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725295#action_12725295
]
Adam Kocoloski commented on COUCHDB-398:
----------------------------------------
A quick-fix hack against the 0.9.x branch would be:
Index: src/couchdb/couch_server_sup.erl
===================================================================
--- src/couchdb/couch_server_sup.erl (revision 789389)
+++ src/couchdb/couch_server_sup.erl (working copy)
@@ -32,6 +32,10 @@
end.
restart_core_server() ->
+ supervisor:terminate_child(couch_secondary_services, stats_collector),
+ supervisor:restart_child(couch_secondary_services, stats_collector),
+ supervisor:terminate_child(couch_secondary_services, stats_aggregator),
+ supervisor:restart_child(couch_secondary_services, stats_aggregator),
supervisor:terminate_child(couch_primary_services, couch_server),
supervisor:restart_child(couch_primary_services, couch_server).
This ignores the whole question of how much of couchdb should be restarted by
/_restart and just takes out the stats processes so that the counters get reset.
> test failure: "should keep the same number of open databases when reaching
> the max_dbs_open limit"
> --------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-398
> URL: https://issues.apache.org/jira/browse/COUCHDB-398
> Project: CouchDB
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 0.9
> Reporter: Adam Kocoloski
> Fix For: 0.9.1
>
>
> This test fails because it makes an incorrect assumption about POST
> /_restart, namely that it restart the stats processes. Linking to
> COUCHDB-397 for details.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.