Archive for the ‘Cube Life’ Category

Lots More Testing of the New Ticker Infrastructure

Thursday, July 31st, 2008

MarketData.jpg

I've spent a lot of time today working with a good guy in the ticker infrastructure team to get bugs in his group's code worked out. It's not been easy on him, that's for sure. Today I showed him no less than 4 bugs, each requiring new libraries be built - or in the case of one, the infrastructure itself had to be patched and upgraded.

I gotta hand it to him, it's a massive change, but I'm amazed that his developers didn't find any of these bugs in their testing. I'd have thought they'd have seen these as I did upon first inspection. I guess this is what he's going through to get his guys to get the bugs fixed.

In the end, I know it'll work, but I just feel really bad for him when I keep pointing out bugs less than 5 mins after a new release that he's thinking fixed the very last bug. Nope. There's a few more.

At least he's taking off for the weekend and getting some rest. I'll email him the next set of bugs in the morning and he can get to them on Monday. He deserves a break. It's close, but it still needs work.

Crazy Talk About Source Control Systems

Wednesday, July 30th, 2008

cvs.gif

I've used a lot of different source control systems in my days. Some have seemed to be really nice, only to be replaced by others that are even nicer. Some were replaced by worse systems, but for the most part, it's about the integrity of the development process. Period. Some make it easier to work in teams, some make it easier to work in a distributed manner, but all should have the same key feature: it allows you to version your files so you don't loose anything.

Which is why I was stunned to be in the middle of a discussion about the "one" source control system we should be using. Why? We've used ClearCase, and it worked OK, but then they didn't like supporting it and told us to move to a different system. We've used CVS for ages and it's never failed us. You can use Subversion now, and it's fine. I'm not sure, but I'm willing to bet that just about any reliable SCM is going to work. Just pick one, make sure it's safe, backed-up, and then get on with the job.

svn.gif

To say a group needs to use one at the exclusion of another is silly. You don't use one development environment at the exclusion of another - use Eclipse if you want... use Emacs, use Vi... just get the job done. Why would a group of professional developers even consider making rules like this?

OK, maybe some places feel it's important to have a single tool for each category so that people can get used to it and not have to change. Fine. Then by that logic, if someone is using a tool, don't make them change. If it's working, then it's solved. If it's not, then fix it. But making rules like this when nothing's broken is just plain silly.

When I've used projects that are in Subversion, I used subversion. When they were in ClearCase, I used that. What's the big deal? There is no one tool that's so vastly superior to the others that it can't be made to work, just pick one for a project and stick with it. Seems pretty clear to me.

But I'm in the minority here, it seems. They want to say all new development needs to be in one system. Until they don't like that and move to another, as they did when they moved to this one they are favoring now. It's crazy, but that's corporate life, I guess.

There Are Certain Things We Shouldn’t Know

Tuesday, July 29th, 2008

GottaWonder.jpg

I was talking to a friend that recently left a position as to the reasons for leaving the position, and he said something that was remarkably insightful: I shouldn't know that my COO hates me. It's sad that he does, but what's really just plain bad management is that this upper management makes it known publicly that he doesn't like developers.

I was talking to another friend today that went for an interview and he was talking to the CTo of the small-ish shop that he was interviewing with and the CTO told my friend that he was overpaid. He went on to say that his advice was to have my friend talk to a recruiter and see if he wasn't telling him the truth. The conversation he had with this CTO as part of the interviewing process was just not at all what you'd expect from a CTO.

It was almost like he didn't want my friend to take the job, but didn't want to say "No" to him. Very odd story to hear.

I'm sure there's more to this from the CTO's point of view - who knows how well my friend did on the technical side, and if his personality was a good match with the people. Lots of things can factor into an interview. Heck, back at Port-to-Port, my old company, we had a saying: Sometimes good people don't fit. It was the recognition that good, talented people might not fit into every organization well. It was no reflection on them as a talented person, it was a statement on the fit.

So I look at these two things and think there's a big difference between a good interview and a bad one. And a good manager and a bad one. And it's got nothing to do with skill or talent. It's about personality. If you're someone that likes to poke at people, then you might be a great coach or trainer. But you're not likely to make a great manager as you need to motivate differently in the long haul to be a real success. You also either like talking to people and have a good sense of how to make people feel good about themselves, or you don't. If you don't, your interviews might seem very odd.

It's all about knowing what you're good at. Focusing on the positives and trying to best deal with the negatives. It's not easy, and we all need to do more of it.

I Wonder What the Real Productivity is Around Here?

Tuesday, July 29th, 2008

cubeLifeView.gif

I'm sitting in my cube - like a million other office workers in the world, and I'm listening to the chatter of my co-workers. Now I'm the first to admit that I'm a little more driven that the average worker, and have been called work-aholic more than a few times. But working hard just feels good to me. I like having a challenge to overcome. Yet clearly, mine is not the only work ethic. Far from it.

To hear about the game... or about this contractor, or about that bid for the new kitchen... you'd think that this was a part-time job. Yet I suppose that as long as their managers are happy, I can't complain... only wonder. Wonder at how much might get done if people stopped focusing on their personal needs and started focusing on the business' needs. If their work tasks took priority over their personal tasks.

I chat with my kids when they are online and I'm not busy... but it's never at the expense of work that I'm supposed to do for the Shop. I'm sure there are a lot of people that do personal errands, or call about bills, or such - that's just the nature of people trying to get their non-work life stuff done in the only time that other people are open and available.

I suppose then it's more a level and priority thing. If you're talking about the Cubs for 15 mins. that's OK... but if it's 3 hrs - or you're watching the game while at work, then it's possibly a bit excessive. If you're working out a complete remodel of your house and only get to spend 2 hrs a day on work tasks, then you might have a priority issue.

I just look around and wonder... How much could we really get done if everyone really tried?

Disabled the Last of My Bad Boy Bots

Tuesday, July 29th, 2008

chat.jpg

This morning I was able to restart the last of my servers that had a re-configuration with the MindAlign system to disable it. These were the 10 authentications per minute that were spamming the authentication server... well... the last of them are finally disabled and things seem to be going swimmingly. Good for me. I wrote up the documentation on how to re-enable them once MindAlign decides to allow bots once again - whenever that is. I just wanted to make sure that if I got hit by a truck, someone could read the docs and get things going again.

I know from experience that this is not going to make any difference in the MindAlign stability, but they have been rather insistent that we shut down these spamming bots and so I have done it as quickly as is prudent. We'll see if they are as quick to restore complete MindAlign service.

I'm not holding my breath.

Having a Good Laugh Over Silly Policies

Monday, July 28th, 2008

chat.jpg

Over the last several days we've had significant issues with what appears is non-ASCII data entering the MindAlign servers and bring them all down. Since data like that is very unlikely to be entered by a human, it's thought it had to be a bot. Fair enough.

I've been sent messages by the MindAlign support group that I needed to shut down all the MindAlign bots I had because I was spamming the authentication server with connection requests. I've checked, and we're talking about approximately 10 requests a minute. Hardly excessive, and certainly not the source of continued instability in the system.

Yet I get messages to shut them down.

But to do so is to update/patch several production systems - not the thing you want to do quickly or in haste, and since I've never run these production apps without chatting, it is going to be easy to miss one or two places where the chatting is done. So it's a significant production support risk - all for 10 hits a minute. Hardly seems worth it, so I haven't done anything about it.

Until today.

Today I got a call from one of the MindAlign support folks and he told me what his email had said. I then pointed out the risk to production systems and he actually started to laugh. Clearly, he knew this was a much a fool's folly as I. I even said so. We shared a little giggle and I told him that he had done his job and I'd look into it.

After all, 10 requests a minute is certainly reason enough to cause global chat instability. Hmmm... he didn't think so either, but confessed that he was just 'under orders' to pass the word. I told him his duty was done and he laughed at that as well.

In the end, I put in the changes as best I could, tested them as best I could, and will get the final few restarted this evening/tomorrow morning so as to shut off this spamming. But the problem will remain, won't it? Certainly, because these bots that are so important have been tested and re-tested so many times under so many conditions that they are so unlikely to be the cause of the problem it should be an acceptable risk to leave them on.

It's the bots that are new in the last few days, or those that might chat binary data. Not these that have been working fine for years. It's just silly.

But we're putting production services at risk for this. All for 10 requests a minute. And no one but myself and the guy that called and laughed about it seems to see how incredibly thoughtless this is. But that's how some things go - no one stands up to the Emperor who has no clothes.

Testing New Ticker Infrastructure

Monday, July 28th, 2008

MarketData.jpg

Today has been the first day of really hammering on the new ticker infrastructure for any issues. There were several, and over the course of the day the Team Lead and I have figured them out. Currently, there are only a handful of differences, and those might be related to the timing of the configuration changes as they were done throughout the day. We'll have to wait and see what data tomorrow has. If I'm right, all these remaining differences will vanish and we'll be left with a clean set.

It's nice to make progress on something like this. It turns out a better product for our group and well as getting the global support group to have a better product for everyone.

Sometimes Bigger isn’t Necessarily Better

Friday, July 25th, 2008

chat.jpg

Again today we're having problems with a key infrastructural communication system. Whose fault it is is really unimportant... we're not changing this component out anytime soon - it's a key component in a company that literally spans the globe. It's here.

That being said, it is interesting that today I get a mail from them saying it's going to be running in a restricted mode for the next week. This places a non-trivial squeeze on most of my applications. I use this in every app to communicate with it - control it... monitor it... check health... lots of stuff. So to be without it for another week is non-trivial and more than a little annoying.

Sa as I was saying, they are asking us if we can migrate to a less-secure version that we used to all be on about a year or so ago. It was a multi-year effort to get everyone migrated to the new secure product, but they want to know if we can move back in a few days. What? Oh... yeah, that's right... when you can't fix your own stuff, the best ploy is to ask the users to change and hope that they can change fast enough not to get sick of the outage and decide to move off your product for good. I mean, can these guys be sincere about this?

For me, it's less than a dozen applications, and in some cases the changes are simple configuration changes and some are more structural. But if we change to the old system it's going to mean a ton of logistics... new login credentials for each of the 120 connections I have... new names of channels... lots of chances to get something messed up in the change.

That's why it took more than a year to get the move up right. It had to be sure not to break anything. I don't know what the problem is with their system - it could be really tough to figure out. But to get hundreds of applications reconfigured only to reverse it when they got it all cleared is a little more than a simple exercise. It's silly.

They need to find and fix the problem. If they have to call in smarter people, then do it. If they have to get in new servers, do it. I can think of any of a number of ways to hack the system to work in a pinch, but they aren't asking me and I'm not offering unsolicited advice. But the mere idea that we can easily manage the risk of a global change like this in a few days is absurd. It'd take weeks, and they had better be able to fix this problem faster than that.

Vacation on My Mind

Thursday, July 24th, 2008

Beach.jpg

It's been a bit of a day, as they might say. Plenty of issues from the Corporate Overlords (chat infrastructure group) about what I needed to be doing to shut off the requests my apps were making - going so far as to call it spamming... then there were several meetings that seemed to have marginal utility to me, but maybe they had more utility to others, I don't know.

Thankfully, there was a little coding in there, and I was kept busy with a new pricing infrastructure update that's on the way, but for the most part, I just found it hard not to think about a nice, beach vacation.

Yeah, one of those where you do a lot of sitting around... basically, a lot of nothing. Sure, I just got back from a nice vacation in Orlando, but that was a lot of work. Lots of walking, seeing, doing... not a lot of resting.

Next time - lots of nothing.

Lots of Trouble with MindAlign These Days

Wednesday, July 23rd, 2008

chat.jpg

We use MindAlign in the Shop to have a secure chat environment, such as it is. Over the last few days, it's been problematic to say the least. Today, in fact, they have narrowed down the problem to a global corporate loss of DNS due to MindAlign.

I am not going to bad mouth MindAlign, it's a package that the corporation has picked, and we're going to use it. Period. But today when I came into work I noticed (again) that almost all my production applications (servers and services) had one core/CPU hammering away doing seemingly nothing - but very very fast.

I found that once again we were having MindAlign problems and I decided that this morning I'd dig into the problem and find out why they were all spinning like mad. The first step on that path was to get a few stack dumps, and it's a lot easier to do that in Java than it is in C++, so I did a few thread dumps on an afflicted Java app and after three of them, it because pretty clear where the problem was - in the BKIRCProtocol object. That's the thing that talks to the IRC server, which is the core of MindAlign.

It appeared that the IRC protocol was trying to throw an EOFException because the socket was not returning any data, and was, in fact returning an error code indicating that it wasn't all there anymore. The problem was, that at the higher level, where the EOFException was being caught, I was assuming that the socket was closed - which is why I'd get the EOF condition in the first place. By making that assumption, a socket with an indeterminate state talking to the MindAlign server was "there", but not "there enough".

I put in an explicit disconnect() on the socket connection and that should take care of things. Simple one-line fix (with an accompanying 10 line comment to say why it's being done. Then I was on to the C++ version.

Thankfully, the code is very similar, but the socket communications isn't. But I dug into the code about the same spot - a socket that's almost dead, but returning that it's still connected even though it's not returning any data. What I found was code that looked like this:

  // now read up to the "\n" NEWLINE that the IRC server sends
  if (!error) {
    retval = mCommPort.readUpToNEWLINE();
  }

where readUpToNEWLINE() should return only when a line is received from the IRC server terminated in a NEWLINE (\n) character. The problem was, it was returning an empty string and that was all I needed to know. If it returns nothing, then the only acceptable reason is that there was a timeout. So, check for that, and all other conditions cause us to disconnect from the server and on the next pass, a new connection will be created.

Something like this:

  // now read up to the "\n" NEWLINE that the IRC server sends
  if (!error) {
    retval = mCommPort.readUpToNEWLINE();
    /*
     * It's possible that the data is empty - but the only way for
     * that to be acceptable is for a timeout to have occured. So,
     * if the data is empty and a timeout *didn't* occur, then we
     * need to disconnect this guy and the next pass through, we'll
     * be able to connect again and set things up properly - we
     * hope.
     */
    if (retval.empty() && (errno != ERR_READ_TIMEOUT)) {
      disconnect();
    }
  }

At this point, I think I have the MindAlign issues under control. There's still the issues with the corporate servers, etc., but I can't do anything about them, and we'll just have to wait for them to get fixed up properly by the support teams. It's just nice to have these fixes into BKit and CKit so that I won't get bitten by this problem in the future.