Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented May 13, 2021

Motivation

  • TestRetrySupport will call the cleanup & setup methods between test retries to enable test retries.

  • Test retries for Pulsar Functions integration tests were broken since Functions Worker setup/teardown wasn't part of these calls.

  • The change also ensures correct startup order so that the Pulsar cluster is started before the Functions worker.

  • When running tests on JDK11 there were odd test failures that indicated an incorrect startup order.
    The problems went away with these changes. These changes are necessary for running integration tests on JDK11.

Modifications

  • remove @BeforeClass annotation from setupFunctionWorkers method and call it in an overridden setupCluster method.
  • remove @AfterClass annotation from teardownFunctionWorkers method and call it in an overridden tearDownCluster method.
  • remove unnecessary initialization calls from some integration test classes.

- TestRetrySupport will call the cleanup & setup methods between test
  retries to enable test retries. Test retries for Pulsar Functions were
  broken since Functions Worker wasn't part of these calls.

- The change also ensures correct startup order so that the Pulsar cluster
  is started before the Functions worker. When running tests on JDK11 there
  were odd test failures that indicated an incorrect startup order.
  The problems went away with these changes.
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli eolivelli added this to the 2.8.0 milestone May 13, 2021
@eolivelli eolivelli merged commit 80be713 into apache:master May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants