[
https://issues.apache.org/jira/browse/IGNITE-19081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrey Mashenkov updated IGNITE-19081:
--------------------------------------
Description:
Catalog service should trigger events when it's state is changed.
Other components should be able to subscribe on these events.
Let's
* extends CatalogService from Producer abstract class
* add events for supported DDL commands
* write tests on Catalog events
Note: Let's make these changes aside and avoid breaking the current
implementation.
was:
Catalog service should trigger events when it's state was changed.
Other components should be able to subscribe on these events.
Example:
{code:java}
CreateTableEvent = {TableDescriptor} // Contains tableId and parameter from
CREATE TABLE command.
AddColumnEvent = {tableId, ColumnDescriptor}
{code}
Maybe some additional info will be required, e.g. for finishing future if DDL
operation was triggered locally.
Note: Let's make these changes aside and avoid breaking the current
implementation.
> Introduce Catalog events and subscribe other components.
> --------------------------------------------------------
>
> Key: IGNITE-19081
> URL: https://issues.apache.org/jira/browse/IGNITE-19081
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Andrey Mashenkov
> Assignee: Andrey Mashenkov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Catalog service should trigger events when it's state is changed.
> Other components should be able to subscribe on these events.
> Let's
> * extends CatalogService from Producer abstract class
> * add events for supported DDL commands
> * write tests on Catalog events
> Note: Let's make these changes aside and avoid breaking the current
> implementation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)