[ 
https://issues.apache.org/jira/browse/FLINK-8063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251569#comment-16251569
 ] 

Kostas Kloudas commented on FLINK-8063:
---------------------------------------

I am not sure about this, as also in the 1.3 we had this:

{code}
@SuppressWarnings("unchecked")
        public Future<byte[]> getKvState(
                        final JobID jobId,
                        final String queryableStateName,
                        final int keyHashCode,
                        final byte[] serializedKeyAndNamespace) {

                return getKvState(jobId, queryableStateName, keyHashCode, 
serializedKeyAndNamespace, false)
                                .recoverWith(new Recover<Future<byte[]>>() {
                                        @Override
                                        public Future<byte[]> recover(Throwable 
failure) throws Throwable {
                                                if (failure instanceof 
UnknownKvStateID ||
                                                                failure 
instanceof UnknownKvStateKeyGroupLocation ||
                                                                failure 
instanceof UnknownKvStateLocation ||
                                                                failure 
instanceof ConnectException) {
                                                        // These failures are 
likely to be caused by out-of-sync
                                                        // KvStateLocation. 
Therefore we retry this query and
                                                        // force look up the 
location.
                                                        return getKvState(
                                                                        jobId,
                                                                        
queryableStateName,
                                                                        
keyHashCode,
                                                                        
serializedKeyAndNamespace,
                                                                        true);
                                                } else {
                                                        return 
Futures.failed(failure);
                                                }
                                        }
                                }, executionContext);
        }
{code}

> Client blocks indefinitely when querying a non-existing state
> -------------------------------------------------------------
>
>                 Key: FLINK-8063
>                 URL: https://issues.apache.org/jira/browse/FLINK-8063
>             Project: Flink
>          Issue Type: Improvement
>          Components: Queryable State
>    Affects Versions: 1.4.0
>            Reporter: Chesnay Schepler
>            Assignee: Kostas Kloudas
>            Priority: Critical
>             Fix For: 1.4.0
>
>
> When querying for a non-existing state (as in, no state was registered under 
> queryableStateName) the client blocks indefinitely.



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

Reply via email to