naarad icon indicating copy to clipboard operation
naarad copied to clipboard

Random AttributeErrors

Open stefanodoni opened this issue 8 years ago • 0 comments

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.

stefanodoni avatar Jun 22 '16 07:06 stefanodoni