You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Nitin Gupta (Jira)" <ji...@apache.org> on 2020/09/11 04:40:00 UTC

[jira] [Created] (OAK-9207) Disabled indexes considered for indexing in nrt updates, leading to unnesessary warnings

Nitin Gupta created OAK-9207:
--------------------------------

             Summary: Disabled indexes considered for indexing in nrt updates, leading to unnesessary warnings
                 Key: OAK-9207
                 URL: https://issues.apache.org/jira/browse/OAK-9207
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Nitin Gupta


10.08.2020 08:04:05.259 *WARN* [sling-default-1-Registered Service.5125] org.apache.jackrabbit.oak.plugins.index.IndexUpdate Missing provider for nrt/sync index: DocumentNodeBuilder\{path=/oak:index/damAssetLucene} (rootState.async: null). Please note, it means that index data should be trusted only after this index is processed in an async indexing cycle.10.08.2020 08:04:05.259 *WARN* [sling-default-1-Registered Service.5125] org.apache.jackrabbit.oak.plugins.index.IndexUpdate Missing provider for nrt/sync index: DocumentNodeBuilder\{path=/oak:index/ntBaseLucene} (rootState.async: null). Please note, it means that index data should be trusted only after this index is processed in an async indexing cycle.
 
if (editor == null) {                    // if this isn't an async cycle AND definition has "async" property                    // (and implicitly isIncluded method allows async def in non-async cycle only for nrt/sync defs)                    // then we don't need to handle missing handler                    if (definition.hasProperty(ASYNC_PROPERTY_NAME) && rootState.async == null) {
                        log.warn("Missing provider for nrt/sync index: {} (rootState.async: {}). " +                                "Please note, it means that index data should be trusted only after this index " +                                "is processed in an async indexing cycle.", definition, rootState.async);
                    } else \{
                        rootState.missingProvider.onMissingIndex(type, definition, indexPath);
                    }
 

 

It seems like if an index is disabled, it somehow still gets considered during the nrt updates (it doesn't update the index, just that this warning gets logged which is not needed)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)