mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 20:05:10 +00:00
Size estimates for a particular column family are recorded every 5 minutes. However, when a user calls the describe_splits(_ex) verbs, they may want to see estimates for a recently created and updated column family; this is legitimate and common in testing. However, a client may also call describe_splits(_ex) very frequently and recording the estimates on every call is wasteful and, worse, can cause clients to give up. This patch fixes this by only recording estimates if the first attempt to query them produces no results. Refs #1139 Signed-off-by: Duarte Nunes <duarte@scylladb.com> Message-Id: <1471900595-4715-1-git-send-email-duarte@scylladb.com>