Project: usergrid
Issue USERGRID-725: SNSQueueManagerImpl needs better error handling and messaging
It would be better if this was preceded by a message stating which queue cannot be found. com.amazonaws.services.sqs.model.QueueDoesNotExistException: The specified queue does not exist for this wsdl version. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue; Request ID: 70c94af9-7d46-5d2b-9a7e-07155ddd1ed5) com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1160) com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:748) com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:467) com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:302) com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:2422) com.amazonaws.services.sqs.AmazonSQSClient.receiveMessage(AmazonSQSClient.java:1130) org.apache.usergrid.persistence.queue.impl.SNSQueueManagerImpl.getMessages(SNSQueueManagerImpl.java:234) org.apache.usergrid.corepersistence.asyncevents.AmazonAsyncEventService.take(AmazonAsyncEventService.java:153) org.apache.usergrid.corepersistence.asyncevents.AmazonAsyncEventService.access$300(AmazonAsyncEventService.java:66) org.apache.usergrid.corepersistence.asyncevents.AmazonAsyncEventService$2.call(AmazonAsyncEventService.java:379) org.apache.usergrid.corepersistence.asyncevents.AmazonAsyncEventService$2.call(AmazonAsyncEventService.java:366) rx.Observable$1.call(Observable.java:144) rx.Observable$1.call(Observable.java:136) rx.Observable.unsafeSubscribe(Observable.java:7495) rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62) rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) java.lang.Thread.run(Thread.java:745)
Story points: 1