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-8634: Update ZooKeeper to 3.5.5 #6802

Merged
merged 5 commits into from Jul 10, 2019
Merged

Conversation

ijuma
Copy link
Contributor

@ijuma ijuma commented May 23, 2019

ZooKeeper 3.5.5 is the first stable release in the 3.5.x series. The key new feature
in is TLS support, but there are a few more noteworthy features:

  • Dynamic reconfiguration
  • Local sessions
  • New node types: Container, TTL
  • Ability to remove watchers
  • Multi-threaded commit processor
  • Upgraded to Netty 4.1

See the release notes for more detail:
https://zookeeper.apache.org/doc/r3.5.5/releasenotes.html

In addition to the version bump, we:

  • Add commons-cli dependency as it's required by ZooKeeperMain, but specified as
    provided in their pom.
  • Remove unnecessary ZooKeeperMainWrapper, the bug it worked around was fixed
    upstream a long time ago.
  • Ignore non zero exit in one system test invocation of ZooKeeperMain.
    ZooKeeperMainWrapper always returned 0 and ZooKeeperService.query relies
    on that for correct behavior.

Committer Checklist (excluded from commit message)

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

@ijuma
Copy link
Contributor Author

ijuma commented Jul 3, 2019

Fixed an issue that was causing system tests to fail and launched another build, which is looking good so far:
https://jenkins.confluent.io/job/system-test-kafka-branch-builder/2772/console

@ijuma ijuma marked this pull request as ready for review July 3, 2019 17:30
@ijuma ijuma changed the title [WIP] MINOR: Update ZooKeeper to 3.5.5 MINOR: Update ZooKeeper to 3.5.5 Jul 3, 2019
@ijuma
Copy link
Contributor Author

ijuma commented Jul 5, 2019

There were 10 system tests failures. Fixed an additional issue and started another run:

https://jenkins.confluent.io/job/system-test-kafka-branch-builder/2779/

@ijuma
Copy link
Contributor Author

ijuma commented Jul 5, 2019

2 variations of ConnectDistributedTest failed in the latest run. Will investigate if it's related.

@ijuma
Copy link
Contributor Author

ijuma commented Jul 6, 2019

retest this please

@stanislavkozlovski
Copy link
Contributor

The org.apache.kafka.connect.integration.ExampleConnectIntegrationTest.testSourceConnector test failed on both JDK 11 builds with the error of

org.apache.kafka.connect.errors.DataException: Insufficient records committed by connector simple-conn in 15000 millis. Records expected=2000, actual=1112
	at org.apache.kafka.connect.integration.ConnectorHandle.awaitCommits(ConnectorHandle.java:188)
	at org.apache.kafka.connect.integration.ExampleConnectIntegrationTest.testSourceConnector(ExampleConnectIntegrationTest.java:181)

This isn't the initial connect test that failed, right?

For completeness, the JDK 8 build failed the kafka.admin.LeaderElectionCommandTest.testTopicPartition test with

kafka.common.AdminCommandFailedException: Timeout waiting for election results
	at kafka.admin.LeaderElectionCommand$.electLeaders(LeaderElectionCommand.scala:134)
	at kafka.admin.LeaderElectionCommand$.run(LeaderElectionCommand.scala:89)
	at kafka.admin.LeaderElectionCommand$.main(LeaderElectionCommand.scala:42)
	at kafka.admin.LeaderElectionCommandTest$$anonfun$testTopicPartition$1.apply(LeaderElectionCommandTest.scala:121)
	at kafka.admin.LeaderElectionCommandTest$$anonfun$testTopicPartition$1.apply(LeaderElectionCommandTest.scala:104)
	at kafka.utils.TestUtils$.resource(TestUtils.scala:1534)
	at kafka.admin.LeaderElectionCommandTest.testTopicPartition(LeaderElectionCommandTest.scala:104)

which seems more like a flake

@ijuma
Copy link
Contributor Author

ijuma commented Jul 8, 2019

@stanislavkozlovski the JUnit failures are all flakes. The system test failures are not yet clear.

@ijuma
Copy link
Contributor Author

ijuma commented Jul 8, 2019

The Connect system test that failed also looks like a flake, trunk also fails sometimes:

http://confluent-kafka-system-test-results.s3-us-west-2.amazonaws.com/2019-07-05--001.1562343232--confluentinc--master--8dc8e6d/report.html

@ijuma
Copy link
Contributor Author

ijuma commented Jul 8, 2019

retest this please

@ijuma ijuma requested a review from junrao July 8, 2019 08:27
@ijuma ijuma changed the title MINOR: Update ZooKeeper to 3.5.5 KAFKA-8634: Update ZooKeeper to 3.5.5 Jul 8, 2019
@ijuma
Copy link
Contributor Author

ijuma commented Jul 8, 2019

I reran the connect system tests a few times and the failures are flaky (i.e. they pass sometimes). So, I think this PR is ready for review.

@ijuma ijuma requested review from hachikuji and mumrah July 8, 2019 16:48
Copy link
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM

@ijuma ijuma merged commit d67495d into apache:trunk Jul 10, 2019
@ijuma ijuma deleted the zookeeper-3.5 branch July 10, 2019 16:45
ijuma added a commit to confluentinc/common that referenced this pull request Jul 11, 2019
Apache Kafka has upgraded to ZooKeeper 3.5.5 recently:

apache/kafka#6802

Kafka has also removed `ZkUtils` and the `zkclient` dependency.

ZooKeeper 3.5.5 is the first stable release in the 3.5.x series. The key new feature
in is TLS support, but there are a few more noteworthy features:

* Dynamic reconfiguration
* Local sessions
* New node types: Container, TTL
* Ability to remove watchers
* Multi-threaded commit processor
* Upgraded to Netty 4.1

See the release notes for more detail:
https://zookeeper.apache.org/doc/r3.5.5/releasenotes.html
ijuma added a commit to confluentinc/common that referenced this pull request Jul 27, 2019
Apache Kafka has upgraded to ZooKeeper 3.5.5 recently:

apache/kafka#6802

Kafka has also removed `ZkUtils` and the `zkclient` dependency.

ZooKeeper 3.5.5 is the first stable release in the 3.5.x series. The key new feature
in is TLS support, but there are a few more noteworthy features:

* Dynamic reconfiguration
* Local sessions
* New node types: Container, TTL
* Ability to remove watchers
* Multi-threaded commit processor
* Upgraded to Netty 4.1

See the release notes for more detail:
https://zookeeper.apache.org/doc/r3.5.5/releasenotes.html
ijuma added a commit to confluentinc/common that referenced this pull request Aug 2, 2019
Apache Kafka has upgraded to ZooKeeper 3.5.5 recently:

apache/kafka#6802

Kafka has also removed `ZkUtils` and the `zkclient` dependency. We do the
same here (remove the `ZkUtils` clone and the `zkclient` dependency). We
keep the `dependencyManagement` entries for `zookeeper` and `zkclient` as
other Confluent projects have dependencies on those libraries.

ZooKeeper 3.5.5 is the first stable release in the 3.5.x series. The key new feature
is TLS support, but there are a few more noteworthy features:

* Dynamic reconfiguration
* Local sessions
* New node types: Container, TTL
* Ability to remove watchers
* Multi-threaded commit processor
* Upgraded to Netty 4.1

See the release notes for more detail:
https://zookeeper.apache.org/doc/r3.5.5/releasenotes.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants