[ZBX-15373] Problem persists after item was deleted Created: 2018 Dec 27 Updated: 2024 Apr 10 Resolved: 2019 Jan 20 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 4.0.3 |
Fix Version/s: | 4.0.4rc1, 4.2.0alpha3, 4.2 (plan) |
Type: | Problem report | Priority: | Blocker |
Reporter: | Khatsayuk Alexander | Assignee: | Valdis Murzins |
Resolution: | Fixed | Votes: | 6 |
Labels: | lld, problems, server | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
OS: CentOS 7.6.1810 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||||||
Team: | |||||||||||||||||||||||||
Sprint: | Sprint 47, Dec 2018, Sprint 48, Jan 2019 | ||||||||||||||||||||||||
Story Points: | 0.125 |
Description |
Steps to reproduce:
Result: Expected: |
Comments |
Comment by Arturs Lontons [ 2018 Dec 27 ] |
Hi! Thank you for reporting the issue. I was able to reproduce the issue by following the provided steps. I will be forwarding this ticket to our development team so they can take a look at the existing logic and develop a fix for the issue. |
Comment by Maxim Berezovskiy [ 2019 Jan 04 ] |
The same problem: |
Comment by Valdis Murzins [ 2019 Jan 09 ] |
This problem occurred because of error in item delete procedure. |
Comment by Valdis Murzins [ 2019 Jan 09 ] |
FIXED in development branch svn://svn.zabbix.com/branches/dev/ZBX-15373 |
Comment by Ingus Vilnis [ 2019 Jan 14 ] |
Will this fix in 4.0.4 delete also the orphaned entries left now by 4.0.3? |
Comment by Valdis Murzins [ 2019 Jan 14 ] |
ingus.vilnis Such problems can be removed manually by removing related (orphaned) triggers, but if necessary, please, create separate issue. To remove them manually, you need to remove the trigger. It can be done in 2 ways: |
Comment by Ingus Vilnis [ 2019 Jan 14 ] |
Valdi, Thank you very much for the follow-up! But so to understand it correctly - there is/will be NO automatic removal of such orphaned entries, correct? Guys, a regression was introduced after |
Comment by Valdis Murzins [ 2019 Jan 14 ] |
ingus.vilnis In short - yes. There is no and is not planned to do automatic removal of orphaned entries. |
Comment by Ingus Vilnis [ 2019 Jan 14 ] |
Ok, now it is clear. Probably exact steps for cleanup would be very beneficial in 4.0.4 upgrade notes. |
Comment by richlv [ 2019 Jan 14 ] |
Is it correct that this only affected frontend/API, and the server did everything properly? |
Comment by Valdis Murzins [ 2019 Jan 14 ] |
richlv The problem is only in API. Namely in CItemManager::delete(). I hope, it answers your question. |
Comment by Valdis Murzins [ 2019 Jan 14 ] |
Fixed in:
|
Comment by richlv [ 2019 Jan 14 ] |
Thanks, then the number of affected users should indeed be quite low, and documenting this in the upgrade notes (as Ingus suggested) - and known issues for the affected versions - should be sufficient. |
Comment by Valdis Murzins [ 2019 Jan 18 ] |
Documentation changes: |
Comment by dimir [ 2019 Feb 08 ] |
Another proof from forum that the bug is fixed: https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/372361-availability-report-items-with-unknow-and-message-undefined-offset-0 |