You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (Jira)" <ji...@apache.org> on 2022/03/25 11:11:00 UTC
[jira] [Updated] (IGNITE-16679) Redesing local events in order to them contain a synchronous and asychronous parts
[ https://issues.apache.org/jira/browse/IGNITE-16679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladislav Pyatkov updated IGNITE-16679:
---------------------------------------
Summary: Redesing local events in order to them contain a synchronous and asychronous parts (was: Table creates earlier then the table create event is handled)
> Redesing local events in order to them contain a synchronous and asychronous parts
> ----------------------------------------------------------------------------------
>
> Key: IGNITE-16679
> URL: https://issues.apache.org/jira/browse/IGNITE-16679
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Priority: Blocker
> Labels: ignite-3
>
> The table is assumed ready just after the TableImpl object hits the internal collection in TableManager, but the table event (CREATE) happen after.
> It leads to bugs into SQL, because the component construct a Calcite schema by the event:
> {noformat}
> class org.apache.ignite.lang.IgniteInternalException: Failed to validate query. org.apache.calcite.runtime.CalciteContextException: From line 1, column 13 to line 1, column 17: Object 'TEST1' not found
> at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareSingle(PrepareServiceImpl.java:100)
> at org.apache.ignite.internal.sql.engine.SqlQueryProcessor.lambda$query0$6(SqlQueryProcessor.java:284)
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829)
> Caused by: org.apache.calcite.tools.ValidationException: org.apache.calcite.runtime.CalciteContextException: From line 1, column 13 to line 1, column 17: Object 'TEST1' not found
> at org.apache.ignite.internal.sql.engine.prepare.IgnitePlanner.validate(IgnitePlanner.java:164)
> at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareDml(PrepareServiceImpl.java:152)
> at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.prepareSingle(PrepareServiceImpl.java:89)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)