Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old measurement reappears after dropping and then restarting #16947

Open
andybets opened this issue Feb 20, 2020 · 5 comments
Open

Old measurement reappears after dropping and then restarting #16947

andybets opened this issue Feb 20, 2020 · 5 comments

Comments

@andybets
Copy link

Influx Version 1.7.9

I think related to #10263 and #10052, when I issue a:
drop measurement funding_rate_1h;
...the measurement dissappears as expected.

But when stopping and restarting influx, it inexplicably returns.

I hope you guys can manage to find this one, it's really annoying!

@russorat russorat added the 1.x label Feb 20, 2020
@russorat
Copy link
Contributor

@andybets thanks for opening. looking at the name (_1h), can you double check, you don't have any continuous queries, telegrafs, client libs, or kapacitors sending data to that database/rp/measurement?

@andybets
Copy link
Author

No, I don't have anything like that, despite the name, and this is when just running the influx process. It would have been embarrassing if I had though! :)

@mariusvollen
Copy link

I'm experiencing a similar issue. I have multiple VM's that have been decommissioned and physically deleted that i cant get rid of in the database. When I drop the series they disappear. Then there should be a background service deletes the data from disk a few hours later. The longest I've waited after dropping the data is a week. The data still re-appears when i restart the service.

root@influxdb:~# influx
Connected to http://localhost:8086 version 1.7.9
InfluxDB shell version: 1.7.9
> use telegraf
Using database telegraf
> SELECT mean("usage_idle") FROM "cpu" WHERE ("host" = 'Cloud')
name: cpu
time mean
---- ----
0    99.86233409313806
> drop series where "host" = 'Cloud'
> SELECT mean("usage_idle") FROM "cpu" WHERE ("host" = 'Cloud')
>

Restarting influxdb service...

root@influxdb:~# influx
Connected to http://localhost:8086 version 1.7.9
InfluxDB shell version: 1.7.9
> use telegraf
Using database telegraf
> SELECT mean("usage_idle") FROM "cpu" WHERE ("host" = 'Cloud')
name: cpu
time mean
---- ----
0    99.86233409313806
> 

@russorat
Copy link
Contributor

@mariusvollen thank you for the additional information. We will investigate.

@relishcolouredhat
Copy link

I'm running into this on 1.8.10

  1. write data with telegraf with incorrect fields
  2. stop tg, drop db, confirm no data by no return from select(*)....
  3. show field keys still contains invalid types 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants