[ 
https://issues.apache.org/jira/browse/IGNITE-16231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladislav Pyatkov updated IGNITE-16231:
---------------------------------------
    Description: 
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. But for correct 
handling schema modification (or create a new one) a name (ID or any reference 
to the root) of the table is required.

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 make available value of placeholder through the event context which is 
passing into the listener.
 
 

  was:
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. But for correct 
handling schema modification (or create a new one) a name (ID or any reference 
to the root) of the table is required.

Look at the comments in the code:

{code}

// 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 make available value of placeholder through the event context which is 
passing into the listener.
 
 


> Way for know an any() placeholder value
> ---------------------------------------
>
>                 Key: IGNITE-16231
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16231
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: 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. But for correct 
> handling schema modification (or create a new one) a name (ID or any 
> reference to the root) of the table is required.
> 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 make available value of placeholder through the event context which 
> is passing into the listener.
>  
>  



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

Reply via email to