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

Andrey Mashenkov commented on IGNITE-15096:
-------------------------------------------

[~alapin], [[email protected]] I've found TODO refers to the resolved 
ticket IGNITE-15414.
Seems, it was decided to replace per-table event listeners for schema changes 
with a single listener for all schemas and provide a context for the change.

I've tried to rewrite the code using any() and faced onCreate() is called 
multiple times with the same context.
Moreover, at some point, I see an empty _tablesById_ map that causes NPE.

Is it ok and I do smth wrong or there is a bug?
Please, run AbstractSchemaChangeTest in PR to reproduce.

> Schema events processing refactoring.
> -------------------------------------
>
>                 Key: IGNITE-15096
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15096
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Andrey Mashenkov
>            Assignee: Andrey Mashenkov
>            Priority: Minor
>              Labels: ignite-3
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> All table events with schema events are processed in TableManager listener.
> Let's 
> * -Replace ConfigurationListener with ConfigurationNamedListListener to 
> simplify the diff calculation between old/new configs.- 
> Resolved in IGNITE-15404
> * -Register a separate per-table listener for schema events on table creation.
> Resolved in IGNITE-15409



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to