Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging does not cope with high frequency parallel execution #345

Open
atruskie opened this issue Jul 17, 2020 · 1 comment
Open

Logging does not cope with high frequency parallel execution #345

atruskie opened this issue Jul 17, 2020 · 1 comment
Labels

Comments

@atruskie
Copy link
Member

Describe the bug

When executing highly parallel workloads conflicts emerge from the log files:

ysing L:\Site B\SM3-B__0__20190705_160710.wav, @{Count=28}/177251
Analysing L:\Site B\SM3-B__0__20190705_170710.wav, @{Count=28}/177251
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but OutputFile [C:\AP\Logs\log_20200717T042756Z.txt] already exists.
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but OutputFile [C:\AP\Logs\log_20200717T042756Z.txt] already exists.
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but OutputFile [C:\AP\Logs\log_20200717T042756Z.txt] already exists.

Expected behavior

Automatic file name conflict resolution for log files that start on the same second should occur.

Diagnostics

Instructions

✅ I have followed the instructions for reporting a bug

I have attached a log:

N/A

The operating system I'm using is:

Windows 10 Version 2002

The version of AnalysisPrograms.exe I'm using is:

v20.6.0.208

The data used can be found:

N/A

The command I used:

audio2csv, 16 parallel executions

The config file I used:

Towsey.Acoustic.yml

@atruskie atruskie added the bug label Jul 17, 2020
@atruskie
Copy link
Member Author

atruskie commented Feb 6, 2021

Similarly, in cases of cleaning excessive log files this occurs:

log4net:WARN Cannot RollFile
[/home/ubuntu/AP/Logs/log_20210204T061658Z.1.txt] ->
[/home/ubuntu/AP/Logs/log_20210204T061658Z.2.txt]. Source does not exist
log4net:WARN Cannot RollFile
[/home/ubuntu/AP/Logs/log_20210204T064457Z.txt] ->
[/home/ubuntu/AP/Logs/log_20210204T064457Z.1.txt]. Source does not exist
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but
OutputFile [/home/ubuntu/AP/Logs/log_20210204T064457Z.txt] already exists.
log4net:WARN Cannot RollFile
[/home/ubuntu/AP/Logs/log_20210204T070022Z.txt] ->
[/home/ubuntu/AP/Logs/log_20210204T070022Z.1.txt]. Source does not exist
l

This might be better solved by ensuring logs are written to outside the install directory by default. Related to #157 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant