confluentinc / kafka-connect-jdbc

Kafka Connect connector for JDBC-compatible databases
Other
19 stars 955 forks source link

Fixing JDBC Connector build for macOS Monterey 12. #1350

Open ManasjyotiSharma opened 1 year ago

ManasjyotiSharma commented 1 year ago

Problem

  1. Postgres ITs were failing with segmentation fault.
  2. Two of the UTs are flaky; this issue is not specific to macOS alone rather happeing on Linux as well.

Solution

  1. Fixing the PG segmentation fault by following the solution as mentioned here; namely:
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.zonky.test.postgres</groupId>
        <artifactId>embedded-postgres-binaries-bom</artifactId>
        <version>11.13.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>io.zonky.test</groupId>
      <artifactId>embedded-postgres</artifactId>
      <version>1.3.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

Additionally add following into ~/.zprofile:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
  1. Disabling the two flaky UTs for now. Filed Jira (ref) to track fixing them.
Does this solution apply anywhere else?
Testing done:
cla-assistant[bot] commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.