Skip to content

Tune the sequence of resources closure #5433

Description

@halibobo1205

Rationale

Why should this feature exist?
The order of loading resources is Databases → Thread Pools -> Network -> Consensus → API, the order of releasing should be reversed, API → Consensus -> Network -> Thread Pools → Databases.

Implementation

Do you have ideas regarding the implementation of this feature?
As mentioned above.

  • The lifecycle of Databases is managed by the spring container. Tune the databases closure #5428
  • Thread Pools are initialized with beans.
  • Application. startup: Network-> Consensus -> API.
  • Application.shutdown: API → Consensus -> Network -> Thread Pools.

Are you willing to implement this feature?
Yes.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions