Skip to content

[oshdb-api] throw exception if cluster is not in an active state when creating connection #337

@tyrasd

Description

@tyrasd

follow up from #335 (comment), as suggested by @rtroilo

We should actually check the current cluster().state() and throw an exception right here if it is not in active or active_read_only state. Because in a case when the cluster is actually not active, there will be probably an exception on the first cache operation somewhere which would then be unexpected.

also perhaps to consider is if the (autoclosable) OSHDBIgnite class should (auto)close connections to Ignite when they are passed in as external already-existing connections from outside via the public OSHDBIgnite​(org.apache.ignite.Ignite ignite) constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions