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

Anton Vinogradov resolved IGNITE-29316.
---------------------------------------
    Resolution: Won't Fix

Closing without changes. Calling start() and stop() on the node and client 
connector factories for the first time would change existing behavior. A 
factory that users start themselves would start twice, and the client connector 
factory would start even when the connector uses the node factory. IGNITE-29212 
does not need this change: it adds the HTTP REST factory to the list and starts 
each instance once.

> Start and stop every SSL context factory of the node configuration once
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-29316
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29316
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Anton Vinogradov
>            Assignee: Anton Vinogradov
>            Priority: Major
>              Labels: ise
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The node calls {{start()}} and {{stop()}} on configuration objects that 
> implement {{LifecycleAware}}: lifecycle beans, segmentation resolvers, the 
> connector message interceptor and SSL factory, the marshaller, the logger and 
> a few others. Since 2014 this list was meant to cover every user object of 
> the node configuration. At that time the binary REST factory was the only SSL 
> context factory. The node SSL context factory 
> ({{IgniteConfiguration.sslContextFactory}}, IGNITE-323) and the client 
> connector SSL context factory 
> ({{ClientConnectorConfiguration.sslContextFactory}}, IGNITE-6810) came later 
> and were never added to the list.
> As a result, the node never starts or stops a {{LifecycleAware}} node or 
> client connector factory. Such a factory gets its lifecycle only when the 
> same object is also set as the binary REST factory. The list has no 
> protection against one object set in several places, so IGNITE-29212 has to 
> skip the HTTP REST factory when binary REST uses the same instance.
> h3. Expected behavior
> Every SSL context factory set in the node configuration starts once before 
> the transports use it and stops once after they stop, also when several 
> places share one instance. The other objects of the list keep their current 
> order.
> A {{LifecycleAware}} node or client connector factory starts getting 
> {{start()}} and {{stop()}} calls. Mention this in the release notes.
> h3. Done when
> * The node, client connector and binary REST factories start and stop once, 
> including a shared instance. IGNITE-29212 adds the HTTP REST factory to the 
> same list.
> * The node has no special check for a factory that two transports share.
> * {{GridLifecycleAwareSelfTest}} covers these factories.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to