[ZBX-10100] values not saved from history cache to database because "meta" is not initialized Created: 2015 Nov 19  Updated: 2017 May 30  Resolved: 2015 Nov 20

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 3.0.0alpha4
Fix Version/s: 3.0.0alpha5

Type: Incident report Priority: Blocker
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: cache, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Values are gathered by pollers and trappers correctly, and put into the history cache. Unfortunately, when processing history cache, "meta" field is sometimes not initialized and happens to be non-null for non-meta values. This leads to values not being saved into the database on random.



 Comments   
Comment by Aleksandrs Saveljevs [ 2015 Nov 19 ]

The following (self-added) log is printed in DCmass_add_history() for a regular integer item (note that "meta" is 1):

  3566:20151119:111335.586 skipping itemid:25532 value_undef:0 meta:1 keep_history:1
Comment by dimir [ 2015 Nov 19 ]

Fixed in development branch: svn://svn.zabbix.com/branches/dev/ZBX-10100.

Comment by Aleksandrs Saveljevs [ 2015 Nov 19 ]

(1) We seem to handle "meta" information field correctly for items with value type "Log". However, after ZBX-7821, we can also have meta information updates for log[], logrt[] and eventlog[] items with numeric types.

asaveljevs Decided to fix that under a separate issue, ZBX-10102, because the fix is likely to be non-trivial. CLOSED.

Comment by dimir [ 2015 Nov 19 ]

Fixed in pre-3.0.0alpha5 (r56784).

Generated at Fri Mar 29 12:29:13 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.