flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-7432) Unclosed HighAvailabilityServices instance in QueryableStateClient
Date Sat, 02 Sep 2017 03:28:00 GMT

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

Ted Yu updated FLINK-7432:
--------------------------
    Description: 
{code}
  public QueryableStateClient(Configuration config) throws Exception {
    this(config, HighAvailabilityServicesUtils.createHighAvailabilityServices(
        config, Executors.directExecutor(), HighAvailabilityServicesUtils.AddressResolution.TRY_ADDRESS_RESOLUTION));
{code}
The HighAvailabilityServices instance is only used for calling getJobManagerLeaderRetriever().

The instance should be closed upon leaving QueryableStateClient ctor.

  was:
{code}
  public QueryableStateClient(Configuration config) throws Exception {
    this(config, HighAvailabilityServicesUtils.createHighAvailabilityServices(
        config, Executors.directExecutor(), HighAvailabilityServicesUtils.AddressResolution.TRY_ADDRESS_RESOLUTION));
{code}

The HighAvailabilityServices instance is only used for calling getJobManagerLeaderRetriever().

The instance should be closed upon leaving QueryableStateClient ctor.


> Unclosed HighAvailabilityServices instance in QueryableStateClient
> ------------------------------------------------------------------
>
>                 Key: FLINK-7432
>                 URL: https://issues.apache.org/jira/browse/FLINK-7432
>             Project: Flink
>          Issue Type: Bug
>          Components: Queryable State
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>   public QueryableStateClient(Configuration config) throws Exception {
>     this(config, HighAvailabilityServicesUtils.createHighAvailabilityServices(
>         config, Executors.directExecutor(), HighAvailabilityServicesUtils.AddressResolution.TRY_ADDRESS_RESOLUTION));
> {code}
> The HighAvailabilityServices instance is only used for calling getJobManagerLeaderRetriever().
> The instance should be closed upon leaving QueryableStateClient ctor.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message