[ 
https://issues.apache.org/jira/browse/IGNITE-16231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17471769#comment-17471769
 ] 

Vladislav Pyatkov commented on IGNITE-16231:
--------------------------------------------

When we start using _any()_ instead of explicit subscription for a table 
registration schema, the configuration listener invokes each time when the 
table creation (before it happened only when the table has already created).

In the result, we will be able to use only event ({_}TableEvent.ALTER{_}) for 
subscribe to register a new table schema (it required to modify logic in 
{_}SqlQueryProcessor{_}).

> Use any() for tracking updates of schema
> ----------------------------------------
>
>                 Key: IGNITE-16231
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16231
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladislav Pyatkov
>            Assignee: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> In the ticket (IGNITE-15409), configuration began to provide API where any 
> unknown part of configuration key can be replaced to any() function. It is 
> convenient when subscribing of any nested sub-configuration, although the 
> specific root has not created yet.
> This API makes sense for subscribing of schemas for table. Look at the 
> comments in the code:
> {code:java}
> // TODO: IGNITE-15409 Listener with any placeholder should be used instead.
> ((ExtendedTableConfiguration) tablesCfg.tables().get(tblName)).schemas()
> .listenElements(new ConfigurationNamedListListener<>() {
>   @Override
>   public @NotNull CompletableFuture<?> onCreate(@NotNull 
> ConfigurationNotificationEvent<SchemaView> schemasCtx) {...}
> }
> {code}
> Need to rewrite the code in order to use `any()` and remove the comment.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to