Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5795

Binary metadata is not registered during start of cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.8
    • binary, sql

    Description

      When cache configured with QueryEntity and used key type with @AffinityKeyMapped field, it will be ignored and wrong partition calculated. This happens because QueryEntity processing precedes key type registering in binary meta cache. On that step CacheObjectBinaryProcessorImpl#affinityKeyField called and unable to resolve type, so null returned and null putted in affKeyFields.

      On next put/get operation CacheObjectBinaryProcessorImpl#affinityKeyField will return null from affKeyFields, but should be affinity key field.

      Test that reproduces problem in PR 2330

      To wrorkaround the issue, set IgniteConfiguration#setKeyConfiguration(), it will force registering key.

      Root cause of this behaviour is that in during cache registration registration of metadata doesn't happen. It lead to exchange messages like (MappingProposedMessage, MetadataRequestMessage etc.) which are often redundant and also lead to behaviour described above(unhandled AffinityKeyMapped).
      Main idea to fix this problem it is registration of metadata locally in during cache start on each node without messages exchange.

      Attachments

        Issue Links

          Activity

            People

              akalashnikov Anton Kalashnikov
              dkarachentsev Dmitry Karachentsev
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h