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

com.hazelcast.internal.serialization.impl.compact.CompactStreamSerializerTest.testFieldOrder [HZ-4568] #26280

Closed
Patras3 opened this issue Mar 6, 2024 · 1 comment

Comments

@Patras3
Copy link
Contributor

Patras3 commented Mar 6, 2024

master (commit 0afa6ae72e3267c66c21d3095c922d4cf5d28be1)

Failed on zing-21: https://jenkins.hazelcast.com/job/Hazelcast-master-ZingJDK21/6/testReport/com.hazelcast.internal.serialization.impl.compact/CompactStreamSerializerTest/testFieldOrder/

Stacktrace:
java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.util.Map.containsKey(Object)" because "this.classToRegistrationMap" is null
	at com.hazelcast.internal.serialization.impl.compact.CompactTestUtil.getSchemasFor(CompactTestUtil.java:361)
	at com.hazelcast.internal.serialization.impl.compact.CompactStreamSerializerTest.testFieldOrder(CompactStreamSerializerTest.java:516)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:115)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:107)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.lang.Thread.run(Thread.java:1584)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.containsKey(Object)" because "this.classToRegistrationMap" is null
	at com.hazelcast.internal.serialization.impl.compact.CompactStreamSerializer.isRegisteredAsCompact(CompactStreamSerializer.java:87)
	at com.hazelcast.internal.serialization.impl.compact.zeroconfig.ValueReaderWriters.createReaderWriterForArray(ValueReaderWriters.java:235)
	at com.hazelcast.internal.serialization.impl.compact.zeroconfig.ValueReaderWriters.readerWriterFor(ValueReaderWriters.java:184)
	at com.hazelcast.internal.serialization.impl.compact.ReflectiveCompactSerializer.createFastReadWriteCaches(ReflectiveCompactSerializer.java:299)
	at com.hazelcast.internal.serialization.impl.compact.ReflectiveCompactSerializer.write(ReflectiveCompactSerializer.java:82)
	at com.hazelcast.internal.serialization.impl.compact.CompactTestUtil.getSchemasFor(CompactTestUtil.java:359)
	... 6 more

Standard output:
Finished Running Test: testNoFields in 0.525 seconds.

Standard output can be found here - https://s3.console.aws.amazon.com/s3/buckets/j-artifacts/Hazelcast-master-ZingJDK21/6/

@Patras3 Patras3 added this to the 5.5 Backlog milestone Mar 6, 2024
Copy link
Contributor

github-actions bot commented Mar 8, 2024

Internal Jira issue: HZ-4568

@github-actions github-actions bot changed the title com.hazelcast.internal.serialization.impl.compact.CompactStreamSerializerTest.testFieldOrder com.hazelcast.internal.serialization.impl.compact.CompactStreamSerializerTest.testFieldOrder [HZ-4568] Mar 8, 2024
devOpsHazelcast pushed a commit that referenced this issue Mar 19, 2024
…Z-4568] (#1087)

[Several tests are
failing](https://hazelcast.atlassian.net/browse/HZ-2245) only on Azul
Prime JDKs due to an incompatibility between it and Mockito.

In https://github.com/hazelcast/hazelcast-mono/pull/845 it was
discovered that a causal factor was mocking classes, not interfaces.

To address this, refactored the test to use a real instantiation of
`CompactStreamSerializer` instead of a mock.
Also refactored to use a lazily-produced iterable as callers typically
only ever access the first element.

*Unable* to reproduce this issue locally to test if this will resolve
the issue.

Fixes: [HZ-4568](https://hazelcast.atlassian.net/browse/HZ-4568),
#26280

[HZ-4568]:
https://hazelcast.atlassian.net/browse/HZ-4568?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

GitOrigin-RevId: fa50b9ec5c0a407c0fdf722e913a16724597fa78
@AyberkSorgun AyberkSorgun modified the milestones: 5.5 Backlog, 5.5.0 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants