COVESA/dlt-daemon

On Linux,turned on compression function,when the first file reaches the storage limit, the size of the second file is always 0, and storage can not continues.

Opened this issue · 6 comments

I find a same issue with #540,Reply has been resolved at #571.
Checkout code has been updated but I still have this problem.

log_002_20240625-165658.dlt.gz :The size of this file is always 0
image

dlt.conf : Modify only this item
OfflineLogstorageMaxDevices = 1

dlt_logstorage.conf:
[FILTER1]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=text
FileSize=10000
NOFiles=10
EcuID=ECU1

[FILTER2]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=log
FileSize=50000
NOFiles=5
EcuID=ECU1
GzipCompression=on

startup parameters:
/home/jyang/dlt-daemo/dlt-daemon-master/build/src/daemon/dlt-daemon -d -c /home/jyang/etc/dlt.conf
/home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

Looking forward to your reply, thank you

IF i set SyncBehavior=ON_SPECIFIC_SIZE, i can solve this problem.
But i want to use SyncBehavior=ON_MSG

[FILTER1]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=text
FileSize=10000
NOFiles=10
EcuID=ECU1

[FILTER2]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=log
FileSize=50000
NOFiles=5
EcuID=ECU1
SyncBehavior=ON_SPECIFIC_SIZE
SpecificSize=200
GzipCompression=on

When I enter the command again, we can continue to store

/home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

But when the file reaches the storage limit, the next file will always become 0

image

Hello @hush-soul
Same issue encountered here #624
Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature.
It is great if you can contribute a fix in PR and we can review and test for you.
Regards

Hello @hush-soul Same issue encountered here #624 Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature. It is great if you can contribute a fix in PR and we can review and test for you. Regards

thanks,I'm not sure this is not the same problem with #624,I might try to solve

How about Linux, does the version kept latest @hush-soul ?

How about Linux, does the version kept latest @hush-soul ?

linux is the latest version