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

Random AttributeErrors #354

Open
stefanodoni opened this issue Jun 22, 2016 · 0 comments
Open

Random AttributeErrors #354

stefanodoni opened this issue Jun 22, 2016 · 0 comments

Comments

@stefanodoni
Copy link

Hi,

I'm using naarad to analyse Linux sar and Java GC logs.

I'm getting some really weird errors, which happens randomly.

It goes like this. I execute naarad command line:

../bin/naarad -i . -o out/sar15 -c config-sar15

Result: sometimes the command completes correctly, other times I get this exception (at random places during parsing):

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/ste/WORKS/Programs/naarad/src/naarad/utils.py", line 812, in parse_and_plot_single_metrics
if metric.parse():
File "/home/ste/WORKS/Programs/naarad/src/naarad/metrics/sar_metric.py", line 147, in parse
datetimestamp = naarad.utils.get_standardized_timestamp(datetimestamp, timestamp_format)
File "/home/ste/WORKS/Programs/naarad/src/naarad/utils.py", line 730, in get_standardized_timestamp
dt_obj = datetime.datetime.strptime(timestamp, ts_format)
AttributeError: _strptime

Please note: this happens by executing the exact same command, with no changes to input files.

Looks like a race condition due to threading.

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

No branches or pull requests

1 participant