Skip to content

fiologparser and fio2gnuplot report error "too many values to unpack (expected 4)" #1014

Open
@MichelePardini

Description

@MichelePardini

Hi
I am using fio-3.20-38-g14060, I noticed that all logs (bw, clat, slat) have now 5 columns, for instance

:::/fio/fsx/256/logs # head 256_iomix_1_bw_bw.log
35, 7622, 0, 262144, 0
35, 7629, 0, 262144, 0
36, 7762, 0, 262144, 0
36, 7833, 0, 262144, 0
36, 7861, 0, 262144, 0
37, 7883, 0, 262144, 0
37, 7957, 0, 262144, 0
38, 7977, 0, 262144, 0
38, 8025, 0, 262144, 0
38, 8094, 0, 262144, 0

All parsers are failing with error

:::>/fio/tools/fiologparser.py 256_iomix_1_bw_bw.log

Traceback (most recent call last):
File "/fio/tools/fiologparser.py", line 214, in
series.append(TimeSeries(ctx, fn))
File "/fio/tools/fiologparser.py", line 163, in init
self.read_data(fn)
File "/fio/tools/fiologparser.py", line 169, in read_data
(time, value, foo, bar) = line.rstrip('\r\n').rsplit(', ')
ValueError: too many values to unpack (expected 4)

I am not using these logs often but looking around I believe they used to have 4 colums. Is it something expected or am I doing something wrong?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    patcheswelcomeNo one internal is working on this but an external contributor's help is very welcome!triagedIssue cause is understood but a patch is needed to fix it

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions