apache / apache/accumulo

Only call getData in ZooCache

Open
#1,423 12 comments 0 reactions 1 assignee Claimed by @EdColeman View on GitHub
Dominant language
Java
Stars
1.2k
Forks
487
Avg merge
4d 5h
Merged PRs (30d)
13

Description

While looking at #1422 I noticed that zoocache calls exists() and then getData(). I think it may be able to only call getData() and catch NoNodeException to know something does not exists.

https://github.com/apache/accumulo/blob/6b54a5d89aa10103105db1a6c6c88903fcaa90e6/core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooCache.java#L408

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.