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

Improve assert in meta storage server Operation class: print byte array content instead of default toString.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha2
    • None
    • Merged to main branch.
    • Docs Required, Release Notes Required

    Description

      Constructor of the class org.apache.ignite.internal.metastorage.server.Operation contains assertion that prints (in case of fail) key and value byte array using default toString() method. It isn't convenient. Printing of actual value (as hex string) could help in problem localization. Also the length of hex string should be limited (e.g. by 256 bytes) in order to avoid printing of massive blocks of data.

      Attachments

        Issue Links

          Activity

            People

              agura Andrey N. Gura
              agura Andrey N. Gura
              Alexander Lapin Alexander Lapin
              Votes:
              0 Vote for this issue
              Watchers:
              2 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