Logged Out...
- 4 minutes read - 748 wordsSo, this story occurred some years ago, when I was proudly serving at a previous employer. We had a notoriously unreliable system, that was of course also really important to the business. Like a lot of these systems, it had gone through a lot of hands, and any suggestion that it should be improved generally ended up with an awful lot of people sort of pointing fingers, staring at their shoes, and generally shuffling out of the immediate area.
However, one day, mirabile dictu, one of our more senior devs got stuck in, and did a fair bit of work on the system. Apparently, he fixed a whole bunch of memory leaks and other problems, refactored a lot of duff code, and improved the logging, so that if it failed again, we’d have really good logs to diagnose problems from.
And the system just ran and ran. We’d almost forgotten that it had ever had problems until one day when it stopped. Hard. There was nothing useful in the copious logs, everything looked normal up until the time when it stopped. As I said, this system was kind of A Big Deal for that company, so there was concern amongst the support team that I worked in.
I must confess at this point that my reputation in this team was fine, except that there was one person who I didn’t get on with. This is my story, so I’m going to say that he treated me as some kind of useless idiot who he loved to sabotage where possible. And so when I trundled over to have a look at the issue, he suggested that I stop messing about with things that I was too stupid to understand and go polish some keyboards or something. I was happy with that — after all, now that I’d been officially TTFO’d, I was off the hook for the remaining downtime.
And downtime there was. We started to get complaints in. I sat there and took on the rest of the incoming work, while gently referring people complaining to that colleague. I may have asked for status updates a couple of times, just to add to the fun. In the end, the team lead asked me to help. I said that I would, and went back over and asked what the issue was. There were two people on it now, the original colleague, and another person who again didn’t like me much but had grudgingly agreed that I was the only person she could leave her systems with when she went on holiday. Neither was much help, but eventually admitted that they were stumped because they just kept getting a message that neither of them had heard of. Apparently this was (if memory serves) “Exception 120”.
Oh, something I could go on. So I went back to my desk and just Googled that. The results were most amusing. Yes, I got told off for giggling during a P1 system downtime event. I went back to the team working on it and said I had a suggestion. They told me to go pound sand. So I went to the team lead with the suggestion — Rotate the logs. About fifteen minutes later, they tried it, as no-one else had any ideas. The system promptly came up and started serving requests again.
P1 over. All good.
But what was “Exception 120”, and how did that explain the issue? Well, at the top of the story, I mentioned that the developer who’d worked on the system had enhanced the logging. Indeed he had. And it turns out that “Exception 120” meant that the system had tried to extend its logfile past the 2GB file size limit — and that had crashed it. It couldn’t restart because it was trying to log that it was starting, but failed because the log file was already 2GB and couldn’t be extended. So, rotating the log gave it a whole new logfile to write into, and it did. We added a monthly job to our service calendar to check the log size, and if it was near 2GB, down the service and rotate the logs.
Needless to say, this didn’t endear me to the team any, and if it wasn’t for the fact that the job was literally fifteen minutes from my house and made organising my personal life a bit easier, I’d have quit. Then they made me redundant any way. I was actually OK with that.