influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

CPU spin on 'delete from ...'

Open abh opened this issue 11 years ago • 2 comments

I realize (since trying it) that it's not supported yet, but spinning 2 CPUs probably isn't the desired behavior:

When I run

delete from server_queries where time='2015-09-14T04:59:06.059250874Z' and hostname='soft'

and variations of this the call doesn't return (using the CLI) and the influxd process uses ~2 CPUs at full throttle until I restart the daemon (or at least for several minutes).

http://localhost:8086/query?db=&q=delete+from+server_queries+where+time%3D%272015-09-14T04%3A59%3A06.059250874Z%27+and+hostname%3D%27sfo2%27

abh avatar Sep 14 '15 05:09 abh

@abh,

I'm trying to reproduce the issue. What version are you using?

When I try to run a similar query I receive the following error in the CLI:

> delete from forests where time='1970-01-01T00:01:00Z'
ERR: invalid query

Currently the best practice for "deleting" a data point is to overwrite it instead. See https://github.com/influxdb/influxdb/issues/3882.

Thanks!

rkuchan avatar Sep 14 '15 20:09 rkuchan

We need a repro case for this one, the given query is not valid.

otoolep avatar Oct 16 '15 05:10 otoolep