9 Nov 2009 16:14
Can't get the disconnection tests to run
Hey guys,
I've been trying to split out a branch that contains the oracle backend that's up-to-date from trunk. For whatever reason, I can't get the disconnection tests to work. I've been running the tests two ways:
1. Using an Oracle TNS name (which looks up the hostname/port in a file). In other words, a URI like this:
oracle://username:password <at> tns_name?tns=True
2. Specifying the port, hostname, and service identifier in the URI. The URI looks like this:
oracle://username:password <at> hostname:port/SID
Using both methods, I can get both the database tests and store tests to work. However, I can't get the disconnection tests to pass.
If I use #1, then the test just fails; a DisconnectError doesn't get raised. It doesn't even appear that is_disconnect_error is ever getting called. If I use #2, the test just hangs. After doing some debugging, I've determined that it is getting hung up at this line of code in the proxy:
rlist, wlist, xlist = select.select(readers, [], [], TIMEOUT)
...which is strange because as far as I know, this shouldn't block.
It makes sense that #1 would fail as the proxy server likely doesn't have anything to connect to. However, I can't figure out why it's getting hung up. Any ideas as far as where to begin? Could something be configured incorrectly? Does this sound like a non-storm issue (in other words, an Oracle issue)?
<div> <p>Hey guys, </p> <div><br></div> <div>I've been trying to split out a branch that contains the oracle backend that's up-to-date from trunk. For whatever reason, I can't get the disconnection tests to work. I've been running the tests two ways: </div> <div><br></div> <div> 1. Using an Oracle TNS name (which looks up the hostname/port in a file). In other words, a URI like this:</div> <div><br></div> <div> oracle://username:password <at> tns_name?tns=True</div> <div><br></div> <div> 2. Specifying the port, hostname, and service identifier in the URI. The URI looks like this:</div> <div><br></div> <div> oracle://username:password <at> hostname:port/SID</div> <div><br></div> <div>Using both methods, I can get both the database tests and store tests to work. However, I can't get the disconnection tests to pass. </div> <div><br></div> <div>If I use #1, then the test just fails; a DisconnectError doesn't get raised. It doesn't even appear that is_disconnect_error is ever getting called. If I use #2, the test just hangs. After doing some debugging, I've determined that it is getting hung up at this line of code in the proxy:</div> <div><br></div> <div> rlist, wlist, xlist = select.select(readers, [], [], TIMEOUT)</div> <div><br></div> <div>...which is strange because as far as I know, this shouldn't block.</div> <div><br></div> <div>It makes sense that #1 would fail as the proxy server likely doesn't have anything to connect to. However, I can't figure out why it's getting hung up. Any ideas as far as where to begin? Could something be configured incorrectly? Does this sound like a non-storm issue (in other words, an Oracle issue)?</div> </div>
RSS Feed