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

Support long keys in DistributedMetaStorage.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.1
    • Component/s: None
    • Labels:
      None
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      Issue was discovered during the implementation of IGNITE-12721. Here's a shot version of the description:

      • local MetaStorage can't handle keys that have more than 64 bytes in their "byte[]" representation. Since DistributedMetaStorage uses it and adds some specific prefixes on top, we have a strict limit on the key length.

      Just to be clear - it just won't work, IGNITE-12721 only adds a valid exception and meaningful error message to the API.

       

      Recently IGNITE-11987 from [IEP-35] has been merged to master and 2.8 release branch, and it does exactly whats written in the title - adds cache name as a part of the key. So, if you use long cache name in, for example, test called "org.apache.ignite.internal.metric.MetricsConfigurationTest#testConfigRemovedOnCacheRemove", you'll get AssertionErrors in log. By "long" I mean about 50 symbols. This should not happen.

       

      I see two options here:

      • leave everything as it is and change keys format;
      • modify MetaStorage so that it can handle longer keys. I prefer this one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ibessonov Ivan Bessonov
                Reporter:
                ibessonov Ivan Bessonov
              • Votes:
                1 Vote for this issue
                Watchers:
                4 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 - 20m
                  20m