-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
DROP MEASUREMENT "xyz" not working #9694
Comments
telegraf_measurements.zip |
+1 I cant drop anything at all. |
Same issue too, no problem when we switch back to 1.3 version. |
@max3163 thanks for the tips, it seems that 1.4.1 works fine too |
I moved from 1.4.3 to 1.5.2, everything seems to work fine for me. |
Same issue here in version 1.5.2 |
In my experience, dropping a series is not always "instant". If a "drop" is not given the correct parameters, it can silently do nothing without an error. This command has no observability and what it does (or doesn't) do is hidden from users. This needs to be improved and "drop series" made more transparent in what it does (or at least the option of having it behave that way.) A more "verbose" drop command is required, telling you how many series were found to drop, including 0 if none are to be dropped. Plus include something in the log file - maybe write out to the log file the name of each series dropped and the total number dropped. |
Same here. Can't delete old measurements I don't want:
|
In my case I have now waited a week and restarted the database multiple times, the measurement is still not dropped |
Are there anyone looking into this? |
Yes. We are investigating this. |
For those experiencing this issue...we are assuming that:
The part where we could use additional hints -- and where we are broadening our tests in an attempt to replicate this -- is regarding the following: |
Yes I've upgraded to 1.5.x and change index from inmem to tsi1, also build the index. Although I must say that I didn't build the index right away, as far as I remember I did it a day later. |
I was able to reproduce the behavior. How to reporduce Findings
|
I'm using dockerized influxdb and found next workaround: |
Facing similar issue here. Can drop newly built measurements but old ones which were populated before upgrade aren't erased. Any update on this? |
@serputko thanks for the workaround. I did the same things. and the "xyz" measurement does not show in "show measurements". Yet when i start to write "abc" data into new measurement which also named "xyz", there are deprecated field keys which are not part of my new "abc" data. So i think the "xyz" measurement is still not properly deleted. |
Facing this issue with 1.6.1 with a database that was created using 1.6.1, ie no migrated data.
|
I'm seeing this too :
I'm using influxdb 1.6.1, and I did switch the index-version to tsi1 at some stage. |
Facing the same issue both with Influxdb 1.5.2 and 1.6.3 (tsm memory index) I really can't understand how such timeseries storage can be used in production when you can't delete data :( |
Are you continuing to feed data into the cluster? If so, the measurement is re-created...as new data points arrive. |
yes, but without "incorrect" fields, which type I want to drop. example: was
all points have deleted but scheme not changed (time_spent_in_http_calls: integer still exist) |
Using 1.6.3, not an upgraded instance. Restarting the |
Hi,
after some seconds...
1540909380000000000 host_name 0.03 0.1 0.06 24 3 19452 5:24 The point is that "Temperature Battery 1" is NOT defined in the system!! Is a snmp input writen to another measurement correctly... |
I just cannot drop a measurement; When I drop it, it appears to go away but when I insert a row all the old field types comes back But doing the same with another measurement name works. Somehow, the old measurement field types are cached; How can I completely wipe out a measurement |
Hi, I know that in the past (some days ago) I did a mistake and I wrote in "system" fields named "host" and another but how comes that I drop the measurement and they are "rewritten" again? Like Sada, is like the field types are cached somewhere and when you creates again the measurement re-take the old values... |
To work around:
The problem is cleared - this bug is very very annoying and very expensive if the database is large. I am unsure if influxdb is ready ! I have started to switch over to "https://prometheus.io/" There are too many bugs in influxdb |
Did this got a messages like below, but did not result in being able to drop
|
I deleted all index directories, like you stated and then rebuild them. Now the measurements are gone. Makes me wonder if data is also gone. Because when I ran queries on the now ‘disappeared measurements’, they returned data. Or was this all coming from the index? |
These are the index directories of my collections database before I erased them |
Same issue in |
Same issue here in version 1.5.2 |
why is this still an issue for about one year? This is essential for having influxdb in production. |
1.5.2 is pretty old, I've see no problems in the latest stable release in this area although the occasional restart is still necessary in some cases when dropping series, I'm using inmem indexes. |
correct. Also with 1.7.4. This seems quite strange to me. |
Using 1.7.6 with docker. |
Can confirm same issue with 1.7.4. Converted data and wal to tsi1. Had a measurement no longer needed with very high cardinality due to having data as tags that should have instead been fields. Used select into query to migrate the data to another table, and convert tags to fields. Cardinality dropped dramatically, improving memory and overall performance. Now I'd like to remove the old measurement. I tried to run drop measurement, but appears nothing is happening. So instead I ran deletes from that measurement until no data left. Restarted influx, and then try and run drop measurement Metrics_test. Just hangs Select * from Metrics_test returns nothing. But, show series exact cardinality returns: name: Metrics_test |
The problem still exists on 1.7.8 after "stop->start" influxdb.service |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
Does 1.7.9 fix this? |
Problem still exist in 1.7.9-1 ! show series where "envtype"='dev'; Seems that in first place, it droped some of the series but now not droping anything more :( |
Just chiming in, the issue stills persists in 1.7.10. A |
the issue still persists in 1.8.1 |
is anyone even working on this anymore? |
This issue is on our radar. We need to test and see if it still exists in 2.x and schedule it for work. |
I was having issues too, my workaround was this:
|
Hi, this is still a big issue. Is someone taking a look from Influx side? We were at a disk space crunch and thought of removing some stale measurements to gain back space, didn't work! |
Bug report
Cannot delete measurments.
I accidentally created a bunch of MS SQL server measurements into my Telegraf db, and want to remove them. When i try to remove them with DROP MEASUREMENT "" it doesnt actually seem to drop it...
My mistake seems to have created over 1000 measurements, so i suspect the bug/issue is due to the number of measurements.
If i create a new test database i can drop measurements as expected.
System info:
Influx 1.5.1 running on Red Hat 4.8.5-11
Steps to reproduce:
Create a lot of measurements - i did this by trying to use the MS SQL Server telegraf input.
It doesnt matter what measurement i specify, i cannot remove it. There is no error
Its still there!
Expected behavior:
Id expect the measurement to no longer be returned after running the DROP MEASUREMENT command.
Actual behavior:
SHOW MEASUREMENT continues to return the measurement..and will not die ;-(
Additional info: [Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: