java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

3.x: should_throw_error_when_udt_is_altered_and_is_not_compatible_anymore can fail

Open dkropachev opened this issue 9 months ago • 0 comments

Starting com.datastax.driver.mapping.MapperUDTTest.should_throw_error_when_udt_is_altered_and_is_not_compatible_anymore [Test #56]...
    59752  [cluster28-worker-3] WARN  com.datastax.driver.mapping.MappingManager  - User type ks_22.address has been altered; existing mappers for @UDT annotated class com.datastax.driver.mapping.MapperUDTTest$Address might not work properly anymore
    59753  [cluster28-worker-3] ERROR com.datastax.driver.mapping.MappingManager  - Could not update mapping for @UDT annotated class com.datastax.driver.mapping.MapperUDTTest$Address
java.lang.IllegalArgumentException: Field "ZIP_code" does not exist in type "ks_22".address
	at com.datastax.driver.mapping.AnnotationParser.parseUDT(AnnotationParser.java:207)
	at com.datastax.driver.mapping.MappingManager.getUDTCodec(MappingManager.java:344)
	at com.datastax.driver.mapping.MappingManager$1.onUserTypeChanged(MappingManager.java:209)
	at com.datastax.driver.core.Metadata.triggerOnUserTypeChanged(Metadata.java:860)
	at com.datastax.driver.core.SchemaParser.updateUserTypes(SchemaParser.java:546)
	at com.datastax.driver.core.SchemaParser.refresh(SchemaParser.java:168)
	at com.datastax.driver.core.SchemaParser$V3SchemaParser.refresh(SchemaParser.java:1344)
	at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:429)
	at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:368)
	at com.datastax.driver.core.Cluster$Manager$SchemaRefreshRequestDeliveryCallback$1.runMayThrow(Cluster.java:3109)
	at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:750)
java.lang.AssertionError: Expected IllegalArgumentException
	at com.datastax.driver.mapping.MapperUDTTest.should_throw_error_when_udt_is_altered_and_is_not_compatible_anymore(MapperUDTTest.java:619)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
	at org.testng.TestRunner.privateRun(TestRunner.java:767)
	at org.testng.TestRunner.run(TestRunner.java:617)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
	at org.testng.SuiteRunner.run(SuiteRunner.java:254)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
	at org.testng.TestNG.run(TestNG.java:1057)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:151)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:192)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:93)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
FAILED : should_throw_error_when_udt_is_altered_and_is_not_compatible_anymore

dkropachev avatar Feb 14 '25 18:02 dkropachev