Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9885

StringsDUnitTest.givenBucketsMoveDuringAppend_thenDataIsNotLost fails with duplicated append

    XMLWordPrintableJSON

Details

    Description

      The test appends a lot of strings to a key. It wound up adding (at least one) extra string to the stored string:

      {{java.util.concurrent.ExecutionException: java.lang.AssertionError: unexpected -

      {append0}

      -key-3-27680 at index 27681 iterationCount=61995 in string}}

      The string "{append0}-key-3-27680" appeared twice in sequence.

      Additional to this failure, the test should be modified to produce a more useful failure message. The current assertion prints the entire String upon failure, which can contain upwards of 50,000 repeats of the "{append0}-key-3*" String, making the output large and unreadable. Consider using an assertion with .withFailureMessage() to produce a more useful error message rather than the currently used Assert.fail().

      Attachments

        Issue Links

          Activity

            People

              donalevans Donal Evans
              ringles Ray Ingles
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: