Yingyi Bu created ASTERIXDB-1825:
------------------------------------

             Summary: potential leaks in Joblet/Task 
                 Key: ASTERIXDB-1825
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1825
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Yingyi Bu
            Assignee: Yingyi Bu


States are never removed from the map. 

{noformat}
   private final class OperatorEnvironmentImpl implements IOperatorEnvironment {
        private final String nodeId;

        public OperatorEnvironmentImpl(String nodeId) {
            this.nodeId = nodeId;
        }

        @Override
        public String toString() {
            return super.toString() + "@" + nodeId;
        }

        @Override
        public synchronized void setStateObject(IStateObject taskState) {
            stateObjectMap.put(taskState.getId(), taskState);
        }

        @Override
        public synchronized IStateObject getStateObject(Object id) {
            return stateObjectMap.get(id);
        }
    }
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to