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

bump dependencies: kafka and zookeeper #378

Merged
merged 1 commit into from
Oct 21, 2022
Merged

bump dependencies: kafka and zookeeper #378

merged 1 commit into from
Oct 21, 2022

Conversation

mhratson
Copy link
Collaborator

@mhratson mhratson commented Oct 12, 2022

bump dependencies: kafka and zookeeper

  • 'kafka_2.12', version: '2.4.0' -> 'kafka_2.12', version: '2.8.2'
  • 'kafka-clients', version: '2.3.1' -> 'kafka-clients', version: '2.8.2'
  • zookeeper 3.5.6 -> 3.8.0

Details

new NetworkClient arguments:

  1. long connectionSetupTimeoutMs,
  2. long connectionSetupTimeoutMaxMs

are described in https://issues.apache.org/jira/browse/KAFKA-9893 and corresponding PRs:

  1. [WIP]KAFKA-9893: Configurable TCP connection timeout and improve the initial metadata fetch apache/kafka#8544
  2. KAFKA-9893: Configurable TCP connection timeout and improve the initial metadata fetch apache/kafka#8683

Testing Done

  1. ./gradlew build

@mhratson mhratson marked this pull request as ready for review October 21, 2022 16:01
build.gradle Outdated Show resolved Hide resolved
- 'kafka_2.12', version: '2.4.0' -> 'kafka_2.13', version: '2.8.2'
- 'kafka-clients', version: '2.3.1' -> 'kafka-clients', version: '2.8.2'
- zookeeper 3.5.6 -> 3.8.0

## Details

new `NetworkClient` arguments:

1. `long connectionSetupTimeoutMs`,
2. `long connectionSetupTimeoutMaxMs`

are described in https://issues.apache.org/jira/browse/KAFKA-9893 and corresponding PRs:

1. apache/kafka#8544
2. apache/kafka#8683

## Testing Done

1. ./gradlew build
@mhratson mhratson merged commit b6faf38 into master Oct 21, 2022
@mhratson mhratson deleted the bump-deps branch October 21, 2022 18:36
mhratson added a commit that referenced this pull request Nov 7, 2022
### Problem
- Exception
```
Exception in thread "main" java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
        at org.apache.kafka.common.config.AbstractConfig.getInt(AbstractConfig.java:173)
        at com.linkedin.xinfra.monitor.services.OffsetCommitService.<init>(OffsetCommitService.java:132)
        at com.linkedin.xinfra.monitor.services.OffsetCommitServiceFactory.createService(OffsetCommitServiceFactory.java:53)
        at com.linkedin.xinfra.monitor.XinfraMonitor.<init>(XinfraMonitor.java:82)
        at com.linkedin.xinfra.monitor.XinfraMonitor.main(XinfraMonitor.java:186)
```
- #378 upgade introduced new [arguments for Network client `long connectionSetupTimeoutMs` and `long connectionSetupTimeoutMaxMs`](https://github.com/linkedin/kafka-monitor/pull/378/files#diff-2d490a032d59e6cc9ec2d94cc7fe4311f08a01d1cd67de185dd8e005fa582cd3R131)
- but mistakenly used `getInt` instead of expected `getLong`

## Solition
- use expected `getLong` method

## TODO
- increase test coverage to avoid future regressions
mhratson added a commit that referenced this pull request Nov 7, 2022
### Problem
- Exception
```
Exception in thread "main" java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
        at org.apache.kafka.common.config.AbstractConfig.getInt(AbstractConfig.java:173)
        at com.linkedin.xinfra.monitor.services.OffsetCommitService.<init>(OffsetCommitService.java:132)
        at com.linkedin.xinfra.monitor.services.OffsetCommitServiceFactory.createService(OffsetCommitServiceFactory.java:53)
        at com.linkedin.xinfra.monitor.XinfraMonitor.<init>(XinfraMonitor.java:82)
        at com.linkedin.xinfra.monitor.XinfraMonitor.main(XinfraMonitor.java:186)
```
- #378 upgade introduced new [arguments for Network client `long connectionSetupTimeoutMs` and `long connectionSetupTimeoutMaxMs`](https://github.com/linkedin/kafka-monitor/pull/378/files#diff-2d490a032d59e6cc9ec2d94cc7fe4311f08a01d1cd67de185dd8e005fa582cd3R131)
- but mistakenly used `getInt` instead of expected `getLong`

## Solition
- use expected `getLong` method

## TODO
- increase test coverage to avoid future regressions
mhratson added a commit that referenced this pull request Nov 7, 2022
### Problem
- Exception
```
Exception in thread "main" java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
        at org.apache.kafka.common.config.AbstractConfig.getInt(AbstractConfig.java:173)
        at com.linkedin.xinfra.monitor.services.OffsetCommitService.<init>(OffsetCommitService.java:132)
        at com.linkedin.xinfra.monitor.services.OffsetCommitServiceFactory.createService(OffsetCommitServiceFactory.java:53)
        at com.linkedin.xinfra.monitor.XinfraMonitor.<init>(XinfraMonitor.java:82)
        at com.linkedin.xinfra.monitor.XinfraMonitor.main(XinfraMonitor.java:186)
```
- #378 upgade introduced new [arguments for Network client `long connectionSetupTimeoutMs` and `long connectionSetupTimeoutMaxMs`](https://github.com/linkedin/kafka-monitor/pull/378/files#diff-2d490a032d59e6cc9ec2d94cc7fe4311f08a01d1cd67de185dd8e005fa582cd3R131)
- but mistakenly used `getInt` instead of expected `getLong`

## Solition
- use expected `getLong` method

## TODO
- increase test coverage to avoid future regressions
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.

None yet

3 participants