Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9736

Intermittent Failures in TestRouteText Pattern Cache Method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Tools and Build
    • None

    Description

      The TestRouteText class includes a testPatternCache method that exhibits intermittent failures when checking the expected maximum cache size.

      TestRouteText.testPatternCache:788 Expected 1024 elements in the cache for the patterns, got1025 expected:<1024> but was:<1025>
      

      Recent changes to refactor usage of Google Guava included changing the cache implementation to use Caffeine. The Caffeine Guava migration documentation indicates that Caffeine uses a slightly different approach to eviction, waiting until the size exceeds the threshold. The test should be adjusted to avoid intermittent failures.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              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 - 0.5h
                  0.5h