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

GridToStringBuilder should limit large collections output to first N elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • None

    Description

      GridToStringBuilder should limit large collections output to first N elements (otherwise, OOME is possible). N should be limited by IGNITE_TO_STRING_COLLECTION_LIMIT system property and should be 10 by default.

      Upd: how about we limit GridToStringBuilder to 10000 chars by default to avoid OOME in complex recursive obj graphs? and (1) provide system property to change default and (2) also provide S.toString() overload that will accept maxLen parameter.

      Upd1: how about we add thread local message length counter in addition to thread local with buffers.

      Attachments

        Issue Links

          Activity

            People

              sbberkov Alexander Belyak
              yzhdanov Yakov Zhdanov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: