Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-2494

Fix TestRollingFileWithoutDeleteAppender test case testFileNamePattern

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: Sentry
    • Labels:
      None

      Description

      The log size is set to 10 bytes. However if the message size is 15 bytes, it creates a 15, 15 and 0 byte file ( which is sometimes flaky)

      Explanation:
      Before we logged a string that was at 15 bytes each. The assumption was Logger would split that across 2 files but it never did that. It would put 15 bytes of line on one file.

      Previously we had 2 log statements:
      debug."123456789012345";
      debug."123456789012345";

      The file being created was "123456789012345", "123456789012345", "" (LAST ONE empty)

      as opposed to "1234567890", "1234512345", "6789012345"

      The above output would be flaky because LOGGER.appender did not handle a LONG string properly. It would sometimes generate two files with "123456789012345", "" (LAST ONE empty)

        Attachments

        1. SENTRY-2494.001.patch
          1 kB
          Arjun Mishra
        2. SENTRY-2494.01.patch
          1 kB
          Arjun Mishra

          Issue Links

            Activity

              People

              • Assignee:
                arjunmishra13 Arjun Mishra
                Reporter:
                arjunmishra13 Arjun Mishra
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: