[
https://issues.apache.org/jira/browse/FLINK-24734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler updated FLINK-24734:
-------------------------------------
Affects Version/s: (was: 1.13.3)
1.13.4
> testSecretOption fails due to missing required options
> ------------------------------------------------------
>
> Key: FLINK-24734
> URL: https://issues.apache.org/jira/browse/FLINK-24734
> Project: Flink
> Issue Type: Bug
> Affects Versions: 1.13.4
> Reporter: Anton Kalashnikov
> Assignee: Chesnay Schepler
> Priority: Major
> Fix For: 1.13.4
>
>
> {noformat}
> java.lang.AssertionError: Expected: (an instance of
> org.apache.flink.table.api.ValidationException and Expected failure cause is
> <org.apache.flink.table.api.ValidationException: Table options are:
> 'buffer-size'='1000''connector'='test-connector''key.format'='test-format''key.test-format.delimiter'=',''password'='******''property-version'='1''value.format'='test-format''value.test-format.delimiter'='|''value.test-format.fail-on-missing'='true'>)
> but: Expected failure cause is
> <org.apache.flink.table.api.ValidationException: Table options are:
> 'buffer-size'='1000''connector'='test-connector''key.format'='test-format''key.test-format.delimiter'=',''password'='******''property-version'='1''value.format'='test-format''value.test-format.delimiter'='|''value.test-format.fail-on-missing'='true'>
> The throwable <org.apache.flink.table.api.ValidationException: Unable to
> create a source for reading table 'default.default.t1'.
> Table options are:
> 'buffer-size'='1000''connector'='test-connector''key.format'='test-format''key.test-format.delimiter'=',''password'='******''property-version'='1''value.format'='test-format''value.test-format.delimiter'='|''value.test-format.fail-on-missing'='true'>
> does not contain the expected failure cause
> <org.apache.flink.table.api.ValidationException: Table options are:
> 'buffer-size'='1000''connector'='test-connector''key.format'='test-format''key.test-format.delimiter'=',''password'='******''property-version'='1''value.format'='test-format''value.test-format.delimiter'='|''value.test-format.fail-on-missing'='true'>Stacktrace
> was: org.apache.flink.table.api.ValidationException: Unable to create a
> source for reading table 'default.default.t1'.
> Table options are:
> 'buffer-size'='1000''connector'='test-connector''key.format'='test-format''key.test-format.delimiter'=',''password'='******''property-version'='1''value.format'='test-format''value.test-format.delimiter'='|''value.test-format.fail-on-missing'='true'
> at
> org.apache.flink.table.factories.FactoryUtil.createTableSource(FactoryUtil.java:140)
> at
> org.apache.flink.table.factories.utils.FactoryMocks.createTableSource(FactoryMocks.java:58)
> at
> org.apache.flink.table.factories.FactoryUtilTest.testError(FactoryUtilTest.java:374)
> at
> org.apache.flink.table.factories.FactoryUtilTest.testSecretOption(FactoryUtilTest.java:162)
> 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at
> org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:239)
> at org.junit.rules.RunRules.evaluate(RunRules.java:20) at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at
> org.junit.runners.ParentRunner.run(ParentRunner.java:363) at
> org.junit.runner.JUnitCore.run(JUnitCore.java:137) at
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
> at
> com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
> at
> com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
> at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)Caused by:
> org.apache.flink.table.api.ValidationException: One or more required options
> are missing.
> Missing required options are:
> target at
> org.apache.flink.table.factories.FactoryUtil.validateFactoryOptions(FactoryUtil.java:384)
> at
> org.apache.flink.table.factories.FactoryUtil.validateFactoryOptions(FactoryUtil.java:357)
> at
> org.apache.flink.table.factories.FactoryUtil$TableFactoryHelper.validate(FactoryUtil.java:718)
> at
> org.apache.flink.table.factories.TestDynamicTableFactory.createDynamicTableSource(TestDynamicTableFactory.java:80)
> at
> org.apache.flink.table.factories.FactoryUtil.createTableSource(FactoryUtil.java:137)
> ... 27 more
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at
> org.junit.Assert.assertThat(Assert.java:956) at
> org.junit.Assert.assertThat(Assert.java:923) at
> org.junit.rules.ExpectedException.handleException(ExpectedException.java:252)
> at org.junit.rules.ExpectedException.access$000(ExpectedException.java:106)
> at
> org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:241)
> at org.junit.rules.RunRules.evaluate(RunRules.java:20) at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at
> org.junit.runners.ParentRunner.run(ParentRunner.java:363) at
> org.junit.runner.JUnitCore.run(JUnitCore.java:137) at
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
> at
> com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
> at
> com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
> at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
> Process finished with exit code 255
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)