Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka: switching from zk to kraft in tests #5461

Open
wants to merge 8 commits into
base: staging
Choose a base branch
from

Conversation

arkadius
Copy link
Member

Describe your changes

Checklist before merge

  • Related issue ID is placed at the beginning of PR title in [brackets] (can be GH issue or Nu Jira issue)
  • Code is cleaned from temporary changes and commented out lines
  • Parts of the code that are not easy to understand are documented in the code
  • Changes are covered by automated tests
  • Showcase in dev-application.conf added to demonstrate the feature
  • Documentation added or updated
  • Added entry in Changelog.md describing the change from the perspective of a public distribution user
  • Added MigrationGuide.md entry in the appropriate subcategory if introducing a breaking change
  • Verify that PR will be squashed during merge

Copy link
Contributor

github-actions bot commented Jan 26, 2024

created: #6669
⚠️ Be careful! Snapshot changes are not necessarily the cause of the error. Check the logs.

@arkadius arkadius marked this pull request as ready for review August 28, 2024 17:59
@@ -47,6 +47,8 @@ class StreamingEmbeddedDeploymentManagerRestartTest extends BaseStreamingEmbedde
jobStatuses.map(_.status) shouldBe List(SimpleStateStatus.Restarting)
}

// We have to recreate kafka server because after shutdown it is unusable anymore
kafkaServer.recreateKafkaServer()
kafkaServer.kafkaServer.startup()
Copy link
Member

Choose a reason for hiding this comment

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

kafkaServer.kafkaServer looks weird. Can we rename the field to underlying or sth like that?

val kafkaAddress: String,
tempDir: File
) extends LazyLogging {

var kafkaServer: Server = createKafkaServer()
Copy link
Member

Choose a reason for hiding this comment

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

why do we have to expose the underlying server? let's keep it as internal

var kafkaServer: Server = createKafkaServer()

def recreateKafkaServer(): Unit = {
kafkaServer = createKafkaServer()
Copy link
Member

Choose a reason for hiding this comment

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

what about closing the previously created server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants