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

EmbeddedPulseRule does not cleanup in some instances

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: pulse
    • Labels:

      Description

      We're using this rule in a couple of places in an inconsistent way. The rule should really be called 'StandalonePulseRule' because it only works correctly when Pulse is not running in embedded mode.

      Specifically, in PulseSecurityTest we're interacting with Pulse embedded in a locator. The rule is used in this test to 'cleanup' various backend structures. However, in this context the Repository is instantiated by both Pulse (via Jetty and it's classloader) as well as by the test itself (different classloader). So the rule doesn't actually end up cleaning up the real (Jetty/Pulse embedded) Repository.

      I'd suggest the rule be renamed to StandalonePulseRule and a new EmbeddedPulseRule should do cleanup via Pulse endpoints and not try and 'reach around' for its cleanup.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jens.deppe Jens Deppe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: