Traceback (most recent call last):
File "/p4/common/site/bin/monitor_metrics.py", line 473, in <module>
obj.run()
File "/p4/common/site/bin/monitor_metrics.py", line 462, in run
metrics = self.findLocks(lockdata, mondata)
File "/p4/common/site/bin/monitor_metrics.py", line 290, in findLocks
metrics.blockingCommands[bpid] = Blocker(bpid, buser, bcmd, belapsed)
UnboundLocalError: local variable 'belapsed' referenced before assignment
I believe all that needs to be done is on line 285 is just change it to the following defining it as unknown:
In the script
monitor_metrics.py
there is a bug wherebelapsed
can be referenced before a value has been assigned.Stacktrace ( Link to current LOC )
I believe all that needs to be done is on line 285 is just change it to the following defining it as unknown:
buser, bcmd, bargs, belapsed = "unknown", "unknown", "unknown", "unknown"