[ 
https://issues.apache.org/jira/browse/OAK-12196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated OAK-12196:
---------------------------------
    Description: 
Currently if a diff.index is used, a warning is logged:

{noformat}
WARN [async-index-update-async] 
org.apache.jackrabbit.oak.plugins.index.IndexUpdate
 jcr:primaryType of index diff.index.optimizer should be 
oak:QueryIndexDefinition 
instead of nt:unstructured
{noformat}

Instead, an info level message should be logged, but only once at startup:

{noformat}
INFO [async-index-update-async] 
org.apache.jackrabbit.oak.plugins.index.IndexUpdate
index diff.index.optimizer is detected
INFO [async-index-update-async] 
org.apache.jackrabbit.oak.plugins.index.IndexUpdate
index diff.index is detected
{noformat}


  was:
Currently if a diff.index is used, a warning is logged:

{noformat}
[async-index-update-async] org.apache.jackrabbit.oak.plugins.index.IndexUpdate
 jcr:primaryType of index diff.index.optimizer should be 
oak:QueryIndexDefinition 
instead of nt:unstructured
{noformat}

Instead, an info level message should be logged.


> Improve logging for diff.index
> ------------------------------
>
>                 Key: OAK-12196
>                 URL: https://issues.apache.org/jira/browse/OAK-12196
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>
> Currently if a diff.index is used, a warning is logged:
> {noformat}
> WARN [async-index-update-async] 
> org.apache.jackrabbit.oak.plugins.index.IndexUpdate
>  jcr:primaryType of index diff.index.optimizer should be 
> oak:QueryIndexDefinition 
> instead of nt:unstructured
> {noformat}
> Instead, an info level message should be logged, but only once at startup:
> {noformat}
> INFO [async-index-update-async] 
> org.apache.jackrabbit.oak.plugins.index.IndexUpdate
> index diff.index.optimizer is detected
> INFO [async-index-update-async] 
> org.apache.jackrabbit.oak.plugins.index.IndexUpdate
> index diff.index is detected
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to