Skip to content

[pick-changes] | Merge pull request #1970 from confluentinc/Java-21-A… #1997

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

ishikaa-p
Copy link
Contributor

…NSIENG-4487

Java 21 ansieng 4487

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • Any variable/code changes have been validated to be backwards compatible (doesn't break upgrade)
  • I have added tests that prove my fix is effective or that my feature works
  • If required, I have ensured the changes can be discovered by cp-ansible discovery codebase
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@Copilot Copilot AI review requested due to automatic review settings May 6, 2025 09:32
@ishikaa-p ishikaa-p requested a review from a team as a code owner May 6, 2025 09:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates configurations to support Java 21 and adjusts several molecule test playbooks accordingly. Key changes include updating Java version assertions and custom Java paths; commenting out multiple platform and test blocks in molecule files to likely reflect deprecated or temporarily disabled configurations; and modifying an error message in a verification playbook.

Reviewed Changes

Copilot reviewed 37 out of 44 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
molecule/mini-setup-oauth-mtls/molecule.yml Minor comment formatting update in cluster group comment
molecule/kerberos-rhel/verify.yml Updated expected error message string for connector verification
molecule/custom-user-plaintext-rhel/molecule.yml Comment adjustments to avoid port collision
molecule/connect-scale-up/verify.yml Complete commenting-out of SSL property test block
molecule/confluent-kafka-kerberos-customcerts-rhel/molecule.yml Disabled control-center1 platform configuration via comments
molecule/certificates.yml Certificate hostname writing task commented out
molecule/ccloud/verify.yml Multiple property tests have been disabled via comments
molecule/ccloud/prepare.yml Disabled control_center inventory entry
molecule/broker-scale-up/converge.yml Disabled broker verification tasks in control-center properties
molecule/archive-zookeeper-tls-rhel-fips/molecule.yml Disabled control-center1 platform configuration via comments
molecule/archive-plain-debian/verify.yml Java version assertion updated from 17 to 21
molecule/archive-plain-debian/molecule.yml Custom Java path updated from /opt/jdk17 to /opt/jdk21
Files not reviewed (7)
  • molecule/Dockerfile-amazonlinux2023.j2: Language not supported
  • molecule/Dockerfile-centos8-base.j2: Language not supported
  • molecule/Dockerfile-debian-java21.j2: Language not supported
  • molecule/Dockerfile-debian12.j2: Language not supported
  • molecule/Dockerfile-rhel-java21.j2: Language not supported
  • molecule/Dockerfile-ubuntu-java21.j2: Language not supported
  • molecule/Dockerfile-ubuntu-java8.j2: Language not supported
Comments suppressed due to low confidence (3)

molecule/connect-scale-up/verify.yml:198

  • If disabling this test block is intentional, please add a clarifying comment explaining the rationale to ensure clarity around test coverage adjustments.
#     - name: Check line connect cluster ssl

molecule/ccloud/verify.yml:152

  • Provide a rationale for disabling these property verification tests; clarifying whether they are deprecated or temporarily disabled will help maintain proper test coverage.
#     - name: Check Max Message Bytes Property

molecule/broker-scale-up/converge.yml:59

  • Commenting out these verification tasks can affect test coverage; add a comment explaining whether these tasks are deprecated or being replaced to ensure clarity.
# - name: Verify New brokers are not there in control-center properties

@@ -237,7 +237,7 @@
vars:
connect_url_input: "{{ kafka_connect_url }}"
active_connectors_input: "{{ add_non_existent_connector }}"
expected_message: "Connectors added or updated: test-connector-1: no configuration change, test-connector-2: ERROR error while adding new connector configuration (HTTP Error 500: Internal Server Error)."
expected_message: "Connectors added or updated: test-connector-1: no configuration change, test-connector-2: ERROR error while adding new connector configuration (HTTP Error 500: Server Error)."
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Consider reviewing the updated error message; using 'Server Error' instead of the standard 'Internal Server Error' may lead to mismatches if the application returns the expected standard phrase.

Suggested change
expected_message: "Connectors added or updated: test-connector-1: no configuration change, test-connector-2: ERROR error while adding new connector configuration (HTTP Error 500: Server Error)."
expected_message: "Connectors added or updated: test-connector-1: no configuration change, test-connector-2: ERROR error while adding new connector configuration (HTTP Error 500: Internal Server Error)."

Copilot uses AI. Check for mistakes.

@@ -149,21 +149,21 @@ platforms:
privileged: true
networks:
- name: confluent
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Add a comment detailing the reason for disabling the 'control-center1' platform configuration to assist future maintainers in understanding the change.

Suggested change
- name: confluent
- name: confluent
# The 'control-center1' platform configuration has been disabled due to compatibility issues with the current setup.
# Specifically, it requires additional resources and configurations that are not supported in this environment.
# Future maintainers can re-enable this configuration after addressing the compatibility concerns.

Copilot uses AI. Check for mistakes.

@@ -149,12 +149,12 @@
loop: "{{groups['ksql']}}"
when: groups['ksql'] is defined

Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Include an explanation for commenting out this certificate configuration task to confirm that the removal is intentional and to aid future maintenance.

Suggested change
# The task for writing control_center hostnames for certificate creation is commented out
# because the control_center group is not currently used in this deployment. If this changes
# in the future, uncomment the task below and ensure the control_center group is properly defined.

Copilot uses AI. Check for mistakes.

@@ -18,7 +18,7 @@
- kafka_connect
- kafka_rest
- ksql
- control_center
# - control_center
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

If the 'control_center' inventory entry is intentionally disabled, please document the reasoning to help future maintainers understand the impact on the configuration.

Suggested change
# - control_center
# - control_center
# The 'control_center' inventory entry is intentionally disabled because it is not required
# in the current configuration. Re-enabling it may impact the deployment of other components.

Copilot uses AI. Check for mistakes.

@@ -129,18 +129,18 @@ platforms:
privileged: true
networks:
- name: confluent
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Include a comment explaining why the 'control-center1' configuration is commented out to increase clarity and aid future maintenance.

Suggested change
- name: confluent
- name: confluent
# The control-center1 configuration is currently disabled because the Control Center service
# is not required for this deployment. Uncomment and configure as needed for environments
# where Control Center is necessary.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

@mansi-jain-1206 mansi-jain-1206 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks.

@ishikaa-p ishikaa-p merged commit 42a9115 into master May 7, 2025
2 checks passed
@ishikaa-p ishikaa-p deleted the cherrypick-Ansieng-4487 branch May 7, 2025 14:13
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.

2 participants