Bug#1012108: spymemcached: FTBFS with OpenJDK 17 due to test failures
Emmanuel Bourg
ebourg at apache.org
Mon May 30 10:10:15 BST 2022
Source: spymemcached
Version: 2.12.3+dfsg-2
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
spymemcached fails to build with OpenJDK 17, there are test failures:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running net.spy.memcached.KetamaNodeLocatorTest
[ERROR] Tests run: 17, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 0.145 s <<< FAILURE! - in net.spy.memcached.KetamaNodeLocatorTest
[ERROR] testFNV1A32(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.029 s <<< FAILURE!
junit.framework.ComparisonFailure: At position 0 expected:<node#[1]> but was:<node#[2]>
at net.spy.memcached.KetamaNodeLocatorTest.testFNV1A32(KetamaNodeLocatorTest.java:170)
[ERROR] testSequence1(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.002 s <<< FAILURE!
junit.framework.ComparisonFailure: At position 0 expected:<node#[0]> but was:<node#[2]>
at net.spy.memcached.KetamaNodeLocatorTest.testSequence1(KetamaNodeLocatorTest.java:147)
[ERROR] testSequence2(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.002 s <<< FAILURE!
junit.framework.ComparisonFailure: At position 0 expected:<node#[2]> but was:<node#[3]>
at net.spy.memcached.KetamaNodeLocatorTest.testSequence2(KetamaNodeLocatorTest.java:152)
[ERROR] testContinuumWrapping(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError: expected:<4294887009> but was:<4292529792>
at net.spy.memcached.KetamaNodeLocatorTest.testContinuumWrapping(KetamaNodeLocatorTest.java:126)
[ERROR] testLookups(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError: expected same:<node#0> was not:<node#2>
at net.spy.memcached.KetamaNodeLocatorTest.testLookups(KetamaNodeLocatorTest.java:101)
[ERROR] testClusterResizing(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError: expected same:<node#0> was not:<node#2>
at net.spy.memcached.KetamaNodeLocatorTest.testClusterResizing(KetamaNodeLocatorTest.java:135)
[ERROR] testLookupsClone(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.002 s <<< FAILURE!
junit.framework.AssertionFailedError: expected same:<node#0> was not:<node#2>
at net.spy.memcached.KetamaNodeLocatorTest.testLookupsClone(KetamaNodeLocatorTest.java:108)
[ERROR] testLibKetamaCompat(net.spy.memcached.KetamaNodeLocatorTest) Time elapsed: 0.002 s <<< FAILURE!
junit.framework.AssertionFailedError: expected same:<node#2> was not:<node#3>
at net.spy.memcached.KetamaNodeLocatorTest.assertPosForKey(KetamaNodeLocatorTest.java:156)
at net.spy.memcached.KetamaNodeLocatorTest.testLibKetamaCompat(KetamaNodeLocatorTest.java:161)
[INFO] Running net.spy.memcached.AddrUtilTest
java.lang.NumberFormatException: For input string: "more"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:668)
at java.base/java.lang.Integer.parseInt(Integer.java:786)
at net.spy.memcached.AddrUtil.getAddresses(AddrUtil.java:70)
at net.spy.memcached.AddrUtilTest.testBrokenHost(AddrUtilTest.java:67)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 s - in net.spy.memcached.AddrUtilTest
More information about the pkg-java-maintainers
mailing list