Skip to content

KAFKA-10180: Fix security_config caching.#8917

Merged
junrao merged 1 commit intoapache:trunkfrom
nizhikov:KAFKA-10180
Jun 27, 2020
Merged

KAFKA-10180: Fix security_config caching.#8917
junrao merged 1 commit intoapache:trunkfrom
nizhikov:KAFKA-10180

Conversation

@nizhikov
Copy link
Copy Markdown
Contributor

After 8b22b81 security_config properties are modified during setup_node: tls_version patched according to the node jdk version. But python @property decorator doesn't store property values and fresh instance of SecurityConfig created on each kafka.security_config call

This patch caches SecurityConfig instances so correct tls_version will be used during the test.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@nizhikov
Copy link
Copy Markdown
Contributor Author

Hello, @rondagostino @ijuma
This patch fix fails of the benchmark_test.py on jdk8.
You can find tests results in jira ticket

Please, take a look.

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@nizhikov : Thanks for the PR. Triggered a run of system tests. Waiting for the results.

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Jun 27, 2020

Results of the system tests: Down to 13 failures and all benchmark related failures are gone. http://confluent-kafka-branch-builder-system-test-results.s3-us-west-2.amazonaws.com/2020-06-26--001.1593223563--nizhikov--KAFKA-10180--ba1dee62e/report.html

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@nizhikov : Thanks for the PR. LGTM

@junrao junrao merged commit 3661f98 into apache:trunk Jun 27, 2020
@junrao
Copy link
Copy Markdown
Contributor

junrao commented Jun 27, 2020

@rhauch : This PR may fix a bunch of system tests in 2.6 too. Since 2.6.0 is code freeze now, I will let you decide if you want to merge this PR to 2.6.

Kvicii pushed a commit to Kvicii/kafka that referenced this pull request Jun 27, 2020
* 'trunk' of github.com:apache/kafka:
  KAFKA-10180: Fix security_config caching in system tests (apache#8917)
  KAFKA-10173: Fix suppress changelog binary schema compatibility (apache#8905)
  KAFKA-10166: always write checkpoint before closing an (initialized) task (apache#8926)
  MINOR: Rename SslTransportLayer.State."NOT_INITALIZED" enum value to "NOT_INITIALIZED"
  MINOR: Update Scala to 2.13.3 (apache#8931)
  KAFKA-9076: support consumer sync across clusters in MM 2.0 (apache#7577)
  MINOR: Remove Diamond and code code Alignment (apache#8107)
  KAFKA-10198: guard against recycling dirty state (apache#8924)
ijuma pushed a commit that referenced this pull request Jun 28, 2020
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 28, 2020

We need this in 2.6 to ensure we have passing system tests, so I cherry-picked it to that branch.

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.

3 participants