code: private void relinquishResource(ZooKeeper zookeeper, String poolNode, int resource) {
          logger.debug("Relinquishing claimed resource {}.", resource);
          try {
              zookeeper.delete(poolNode + "/" + Integer.toString(resource), -1);
          } catch (InterruptedException e) {
              Thread.currentThread().interrupt();
          } catch (KeeperException e) {
              logger.error("Failed to remove resource claim node {}/{}", poolNode, resource);
          }
      }
docs: Relinquish a claimed resource.
  
  @param zookeeper ZooKeeper connection to use.
  @param poolNode Path to the znode representing the resource pool.
  @param resource The resource.