Anton Vinogradov created IGNITE-29316:
-----------------------------------------

             Summary: 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


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, binary REST and HTTP REST factories start and 
stop once, including a shared instance.
* 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