amazon web services - AWS-SDK: SQS How identify messages that were not deleted in BatchDeleteOperation -


deletemessagesparams := &sqs.deletemessagebatchinput{         entries:  messagestodelete, // array of type *sqs.deletemessagebatchrequestentry         queueurl: aws.string(queue_url), }  if resp , err := svc.deletemessagebatch(deletemessagesparams); err != nil {     log.println("batch delete failed: ", err.error()) }else{      log.println("batch delete successful: ", resp) } 

i'm using batch delete in sqs. when batch deletion operation successful, resp contains messageid's of messages deletion successful.

in-case of error or when messages not deleted queue, err contain messageid's batch deletion failed??

in case of partial success when performing batch deletes, service return 200 ok , response object have 2 fields successful , failed.

the failed have list of "batchresulterrorentry" type of objects containing message ids , reason failures.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -