You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2022/02/28 17:29:00 UTC

[jira] [Updated] (NIFI-9736) Intermittent Failures in TestRouteText Pattern Cache Method

     [ https://issues.apache.org/jira/browse/NIFI-9736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann updated NIFI-9736:
-----------------------------------
    Fix Version/s: 1.16.0
           Status: Patch Available  (was: Open)

> Intermittent Failures in TestRouteText Pattern Cache Method
> -----------------------------------------------------------
>
>                 Key: NIFI-9736
>                 URL: https://issues.apache.org/jira/browse/NIFI-9736
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>             Fix For: 1.16.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{TestRouteText}} class includes a {{testPatternCache}} method that exhibits intermittent failures when checking the expected maximum cache size.
> {noformat}
> TestRouteText.testPatternCache:788 Expected 1024 elements in the cache for the patterns, got1025 expected:<1024> but was:<1025>
> {noformat}
> Recent changes to refactor usage of Google Guava included changing the cache implementation to use Caffeine. The [Caffeine Guava migration documentation|https://github.com/ben-manes/caffeine/wiki/Guava] 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)