Bug#1102062: zookeeper: FTBFS: expected: <1> but was: <0>

Santiago Vila sanvila at debian.org
Fri Apr 4 12:58:17 BST 2025


Package: src:zookeeper
Version: 3.8.0-11
Severity: important
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ please read the notes at the end ]

--------------------------------------------------------------------------------
[...]
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 s - in org.apache.zookeeper.common.ZKConfigTest
[INFO] Running org.apache.zookeeper.common.SecretUtilsTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.171 s - in org.apache.zookeeper.common.SecretUtilsTest
[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 122.365 s <<< FAILURE! - in org.apache.zookeeper.test.SaslAuthRequiredMultiClientTest
[ERROR] testClientOpWithInvalidSASLUserAuthAfterSuccessLogin  Time elapsed: 61.577 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: expected [0x10000103da80001] ==> expected: <1> but was: <0>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
	at org.apache.zookeeper.test.JMXEnv.ensureAll(JMXEnv.java:127)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:224)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:205)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:190)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:185)
	at org.apache.zookeeper.test.SaslAuthRequiredMultiClientTest.testClientOpWithInvalidSASLUserAuthAfterSuccessLogin(SaslAuthRequiredMultiClientTest.java:58)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

[ERROR] testClientOpWithInvalidSASLPasswordAuthAfterSuccessLogin  Time elapsed: 60.55 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: expected [0x10000112b800001] ==> expected: <1> but was: <0>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
	at org.apache.zookeeper.test.JMXEnv.ensureAll(JMXEnv.java:127)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:224)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:205)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:190)
	at org.apache.zookeeper.test.ClientBase.createClient(ClientBase.java:185)
	at org.apache.zookeeper.test.SaslAuthRequiredMultiClientTest.testClientOpWithInvalidSASLPasswordAuthAfterSuccessLogin(SaslAuthRequiredMultiClientTest.java:76)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

[INFO] Running org.apache.zookeeper.common.ZKHostnameVerifierTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.155 s - in org.apache.zookeeper.common.ZKHostnameVerifierTest
[INFO] Running org.apache.zookeeper.common.BCFKSFileLoaderTest
[INFO] Running org.apache.zookeeper.common.FileChangeWatcherTest
[INFO] Running org.apache.zookeeper.cli.CommandFactoryTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 s - in org.apache.zookeeper.cli.CommandFactoryTest
[INFO] Tests run: 80, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.214 s - in org.apache.zookeeper.common.BCFKSFileLoaderTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.249 s - in org.apache.zookeeper.common.FileChangeWatcherTest
[INFO] Running org.apache.zookeeper.ServerConfigTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.498 s - in org.apache.zookeeper.ServerConfigTest
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   SaslAuthRequiredMultiClientTest.testClientOpWithInvalidSASLPasswordAuthAfterSuccessLogin:76->ClientBase.createClient:185->ClientBase.createClient:190->ClientBase.createClient:205->ClientBase.createClient:224 expected [0x10000112b800001] ==> expected: <1> but was: <0>
[ERROR]   SaslAuthRequiredMultiClientTest.testClientOpWithInvalidSASLUserAuthAfterSuccessLogin:58->ClientBase.createClient:185->ClientBase.createClient:190->ClientBase.createClient:205->ClientBase.createClient:224 expected [0x10000103da80001] ==> expected: <1> but was: <0>
[INFO] 
[ERROR] Tests run: 1743, Failures: 2, Errors: 0, Skipped: 35
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache ZooKeeper 3.9.3:
[INFO] 
[INFO] Apache ZooKeeper ................................... SUCCESS [  0.301 s]
[INFO] Apache ZooKeeper - Documentation ................... SUCCESS [  0.045 s]
[INFO] Apache ZooKeeper - Jute ............................ SUCCESS [ 33.488 s]
[INFO] Apache ZooKeeper - Server .......................... FAILURE [15:26 min]
[INFO] Apache ZooKeeper - Metrics Providers ............... SKIPPED
[INFO] Apache ZooKeeper - Client .......................... SKIPPED
[INFO] Apache ZooKeeper - Recipes ......................... SKIPPED
[INFO] Apache ZooKeeper - Recipes - Election .............. SKIPPED
[INFO] Apache ZooKeeper - Recipes - Lock .................. SKIPPED
[INFO] Apache ZooKeeper - Recipes - Queue ................. SKIPPED
[INFO] Apache ZooKeeper - Assembly ........................ SKIPPED
[INFO] Apache ZooKeeper - Compatibility Tests ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16:00 min
[INFO] Finished at: 2025-04-04T11:40:30Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on project zookeeper: There are test failures.
[ERROR] 
[ERROR] Please refer to /<<PKGBUILDDIR>>/zookeeper-server/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :zookeeper
dh_auto_test: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode test returned exit code 1
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202504/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:zookeeper, so that this is still
visible in the BTS web page for this package.

Notes:

- Actually, this has been happening since bookworm at least, and that's why
I'm using the bookworm version for the report. The problem happens im both
bookworm and trixie/sid.

- The error happens randomly, not always. But it happens too often.
To be precise, the failure rate I'm getting here is around 70% of the time
on machines with 1 CPU and 40% on machines with 2 CPUs. I do believe
this is not suitable for release, but will be happy to report this
as important if it serves to concentrate on fixing the bug and
not discussing about the severity.

Thanks.



More information about the pkg-java-maintainers mailing list