Github user hnfgns commented on a diff in the pull request:

    https://github.com/apache/drill/pull/260#discussion_r45407026
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/zk/ZkEStore.java 
---
    @@ -17,40 +17,25 @@
      */
     package org.apache.drill.exec.store.sys.zk;
     
    +import java.io.IOException;
    +
     import org.apache.curator.framework.CuratorFramework;
     import org.apache.drill.exec.store.sys.EStore;
     import org.apache.drill.exec.store.sys.PStoreConfig;
     import org.apache.zookeeper.CreateMode;
     
    -import java.io.IOException;
    -
     /**
      * Implementation of EStore using Zookeeper's EPHEMERAL node.
      * @param <V>
      */
    -public class ZkEStore<V> extends ZkAbstractStore<V> implements EStore<V>{
    +public class ZkEStore<V> extends ZkAbstractStore<V> implements EStore<V> {
     
    -  public ZkEStore(CuratorFramework framework, PStoreConfig<V> config) 
throws IOException{
    +  public ZkEStore(CuratorFramework framework, PStoreConfig<V> config) 
throws IOException {
         super(framework,config);
       }
     
       @Override
    -  public void delete(String key) {
    -    try {
    -      if (framework.checkExists().forPath(p(key)) != null) {
    -        framework.delete().forPath(p(key));
    --- End diff --
    
    This ensures that the cache is updated after deletion takes place.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to