couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2552) unknown metric: [couchdb,mrview,map_docs]
Date Mon, 19 Jan 2015 18:10:35 GMT

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

Alexander Shorin commented on COUCHDB-2552:
-------------------------------------------

A bit more notes about. Typo is indeed a mistake, I fixed it, but the real origin of this
logs records is in something different. Here is the sample output from {{make check}}:
{code}
module 'couch_mrview_red_views_tests'
  Reduce views
20:44:48.818 [info] Application inets started on node nonode@nohost
20:44:48.821 [info] Application ibrowse started on node nonode@nohost
20:44:48.821 [info] Application ssl started on node nonode@nohost
20:44:48.829 [info] Application config started on node nonode@nohost
Apache CouchDB 74eefe9 is starting.
20:44:48.829 [info] Starting couch_sup
Apache CouchDB has started. Time to relax.
20:44:48.841 [info] Apache CouchDB has started on http://127.0.0.1:49018/
20:44:48.841 [info] Application couch started on node nonode@nohost
20:44:49.117 [info] Opening index for db: eunit-test-db-1421689488850050 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
20:44:49.117 [info] Starting index update for db: eunit-test-db-1421689488850050 idx: _design/bar
20:44:49.125 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.126 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.126 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.126 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.127 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.127 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.127 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.128 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.128 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.128 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.129 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.133 [info] Index update finished for db: eunit-test-db-1421689488850050 idx: _design/bar
    couch_mrview_red_views_tests:57: should_reduce_basic...ok
20:44:49.139 [info] Index shutdown by monitor notice for db: eunit-test-db-1421689488850050
idx: _design/bar
20:44:49.139 [info] Closing index for db: eunit-test-db-1421689488850050 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
reason: normal
20:44:49.476 [info] Opening index for db: eunit-test-db-1421689489139971 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
20:44:49.476 [info] Starting index update for db: eunit-test-db-1421689489139971 idx: _design/bar
20:44:49.483 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.484 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.484 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.484 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.485 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.485 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.485 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.486 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.486 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.487 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.488 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.488 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.488 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.488 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.488 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.492 [info] Index update finished for db: eunit-test-db-1421689489139971 idx: _design/bar
    couch_mrview_red_views_tests:65: should_reduce_key_range...ok
20:44:49.499 [info] Index shutdown by monitor notice for db: eunit-test-db-1421689489139971
idx: _design/bar
20:44:49.500 [info] Closing index for db: eunit-test-db-1421689489139971 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
reason: normal
20:44:49.797 [info] Opening index for db: eunit-test-db-1421689489500602 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
20:44:49.797 [info] Starting index update for db: eunit-test-db-1421689489500602 idx: _design/bar
20:44:49.803 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.803 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.803 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.803 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.804 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.804 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.804 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.805 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.805 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.805 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:49.805 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.806 [notice] unknown metric: [couchdb,mrview,emits]
20:44:49.809 [info] Index update finished for db: eunit-test-db-1421689489500602 idx: _design/bar
    couch_mrview_red_views_tests:74: should_reduce_with_group_level...ok
20:44:49.817 [info] Index shutdown by monitor notice for db: eunit-test-db-1421689489500602
idx: _design/bar
20:44:49.817 [info] Closing index for db: eunit-test-db-1421689489500602 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
reason: normal
20:44:50.042 [info] Opening index for db: eunit-test-db-1421689489817821 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
20:44:50.042 [info] Starting index update for db: eunit-test-db-1421689489817821 idx: _design/bar
20:44:50.047 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.050 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.050 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.050 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.050 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.050 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.051 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.051 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.051 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.051 [notice] unknown metric: [couchdb,mrview,map_doc]
20:44:50.051 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.052 [notice] unknown metric: [couchdb,mrview,emits]
20:44:50.062 [info] Index update finished for db: eunit-test-db-1421689489817821 idx: _design/bar
    couch_mrview_red_views_tests:91: should_reduce_with_group_exact...ok
20:44:50.095 [info] Index shutdown by monitor notice for db: eunit-test-db-1421689489817821
idx: _design/bar
20:44:50.095 [info] Closing index for db: eunit-test-db-1421689489817821 idx: _design/bar
sig: "42dedd2873389e8b9d906f046b3e3de2"
reason: normal
20:44:50.098 [info] Application couch exited with reason: stopped
20:44:50.099 [info] Application config exited with reason: stopped
20:44:50.099 [info] Application ssl exited with reason: stopped
20:44:50.100 [info] Application ibrowse exited with reason: stopped
20:44:50.101 [info] Application inets exited with reason: stopped
    [done in 1.247 s]
  [done in 1.285 s]
{code}

While I'd fixed the {{map_docs}} name, metrics are still unknown. This happens because {{couch_stats}}
didn't loaded {{couch_mrview/priv/stats_descriptions.cfg}}. And this only happens if {{couch_mrview}}
application didn't ever be started. From {{couch_stats/couch_stats_aggregator}}:

{code}
load_metrics_for_applications() ->
    Apps = [element(1, A) || A <- application:loaded_applications()],
    lists:foldl(
        fun(AppName, Acc) ->
            case load_metrics_for_application(AppName) of
                error -> Acc;
                Descriptions -> Descriptions ++ Acc
            end
        end,
        [],
        Apps
    ).

load_metrics_for_application(AppName) ->
    case code:priv_dir(AppName) of
        {error, _Error} ->
            error;
        Dir ->
            case file:consult(Dir ++ "/stats_descriptions.cfg") of
                {ok, Descriptions} ->
                    Descriptions;
                {error, _Error} ->
                    error
            end
    end.
{code}

> unknown metric: [couchdb,mrview,map_docs]
> -----------------------------------------
>
>                 Key: COUCHDB-2552
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2552
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Database Core
>            Reporter: ILYA
>            Assignee: ILYA
>
> There is a typo in priv/stats_descriptions.cfg of mrview app. It contains definition
of map_doc metric which should be map_docs. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message