[ https://issues.apache.org/jira/browse/GEODE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824375#comment-15824375 ]
ASF subversion and git services commented on GEODE-1733: -------------------------------------------------------- Commit f1cebc2f085807d48adf58d7ad0fbebced49e043 in geode's branch refs/heads/develop from [~nnag] [ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=f1cebc2 ] GEODE-1733: Lucene stats are displayed correctly. * Lucene stats are displayed correctly when rebalancing occurs or a server is reinstantiated * Listener added which creates the LuceneIndexRepository when a bucket becomes primary. * LuceneIndexRepository no longer being created lazily. > Lucene indexes stats are zeroed after recovering from indexes from disk > ----------------------------------------------------------------------- > > Key: GEODE-1733 > URL: https://issues.apache.org/jira/browse/GEODE-1733 > Project: Geode > Issue Type: Bug > Components: lucene > Reporter: William Markito Oliveira > Assignee: nabarun > > When recovering from disk the indexes stats are zeroed until a query is > executed. > {code} > -------------------- > gfsh>list lucene indexes --with-stats > Index Name | Region Path | Indexed Fields | Field > Analyzer | Status | Query Executions | Updates | Commits | Documents > ----------------- | ----------- | -------------------------------- | > -------------- | ----------- | ---------------- | ------- | ------- | > --------- > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionID | /customer | [id] | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionID | /customer | [id] | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionID | /customer | [id] | {} > | Initialized | 0 | 0 | 0 | 0 > -------------------- > After query: > gfsh>list lucene indexes --with-stats > Index Name | Region Path | Indexed Fields | Field > Analyzer | Status | Query Executions | Updates | Commits | Documents > ----------------- | ----------- | -------------------------------- | > -------------- | ----------- | ---------------- | ------- | ------- | > --------- > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionAll | /customer | [lastUpdateDateTime, displayNa.. | {} > | Initialized | 0 | 0 | 0 | 0 > customerRegionID | /customer | [id] | {} > | Initialized | 114 | 0 | 0 | 20644274 > customerRegionID | /customer | [id] | {} > | Initialized | 111 | 0 | 0 | 20103890 > customerRegionID | /customer | [id] | {} > | Initialized | 114 | 0 | 0 | 20637846 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)