Project: bamboo
Issue BAM-6144: Amazon EC2 commands do not timeout
{noformat} QuartzScheduler_Worker-2 [RUNNABLE, IN_NATIVE] CPU time: 0:12 java.net.SocketInputStream.read(byte[], int, int) com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputStream, byte[], int, int) com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputStream, OutputStream) com.sun.net.ssl.internal.ssl.InputRecord.read(InputStream, OutputStream) com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(InputRecord, boolean) com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(InputRecord) com.sun.net.ssl.internal.ssl.AppInputStream.read(byte[], int, int) org.apache.commons.httpclient.HttpClient.executeMethod(HttpMethod) com.xerox.amazonws.common.AWSQueryConnection.makeRequest(HttpMethodBase, String, Map, Class) com.xerox.amazonws.ec2.Jec2.makeRequestInt(HttpMethodBase, String, Map, Class) com.xerox.amazonws.ec2.Jec2.describeSecurityGroups(List) com.atlassian.aws.AWSAccountImpl.getEC2SecurityGroups() com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.ensureSecurityGroupExists(AWSAccount) com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacadeImpl.startupAgents(Collection) com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(JobExecutionContext) org.quartz.core.JobRunShell.run() com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run() org.quartz.simpl.SimpleThreadPool$WorkerThread.run() {noformat} this can lead to some fairly serious thread starvation issues like http://skitch.com/markchai/dknaw/bootstrap-yourkit-java-profiler-8.0.24
Story points: 3