[ 
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 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.

  was:
Let's 
* implement CatalogManager methods that will validate and save catalog changes 
to the MetaStorage.
* implement Metastorage WatchListener that will apply these changes and update 
CatalogService state.


> 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
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to