[ZBX-22933] Use buffered read instead of reading line by line with vfs.file.regmatch and vfs.file.regexp Created: 2023 Jun 07  Updated: 2024 Apr 10  Resolved: 2024 Jan 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 6.0.26rc1, 6.4.11rc1, 7.0.0alpha9, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Armands Arseniuss Skolmeisters
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File test_file_UTF16    
Team: Team C
Sprint: Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401
Story Points: 1

 Description   

Please see ZBX-22798, it is better to read 64 KB worth of data, then find lines ending with new line in it and process those, then try reading more from last new line.

Currently 64KB is retrieved but position is set to next new line each time which is inefficient and can cause problems if file is updated during this time.



 Comments   
Comment by Armands Arseniuss Skolmeisters [ 2023 Nov 07 ]

Fixed in development branch feature/ZBX-22933-6.5

Comment by Armands Arseniuss Skolmeisters [ 2023 Dec 15 ]

Available in versions:

Generated at Sun Mar 23 22:59:07 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.