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

Validation of key length written to Distributed Metastorage

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 2.9
    • persistence
    • None
    • Issue is irrelevant because IGNITE-12726 is already fixed.
    • Docs Required, Release Notes Required

    Description

      DistributedMetastorage functionality introduced in IGNITE-10640 provides convenient way to perform coordinated writes to local MetaStorages on all server nodes but lacks important part: validation of key length.

      Current implementation of MetaStorage doesn't allow keys longer than a specific value (64 bytes minus some prefixes, see source code for details) and throws assertion error on an attempt to write longer key.

      This error from MetaStorage is not propagated to DistributedMetastorage and (in theory) may even cause a node to halt.

      In order to avoid this situation validation of key length should be added right to DistributedMetastorage implementation to enforce "fail-fast" principle and preserve Ignite nodes from potentially dangerous consequences.

      Attachments

        Issue Links

          Activity

            People

              sergey-chugunov Sergey Chugunov
              sergey-chugunov Sergey Chugunov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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