Rollback during Dataload Failure ADF
Today we had an error on STAGE when receiving an order - due to a “lost connection”.My idea was then to set this “repeat” to 3:Please see the screenshotNow the question is, what happens if it has...
View Articlespring-kafka 2.7.0 | Using @RetryableTopic causing listener to go into...
spring-kafka 2.7.0Using @RetryableTopic causing listener to go into infinite loop when exception occursRetry logic is working as it should. But they seem to be reading the same message infinitely while...
View ArticleI want to add retry logic and. refactor the code in the python socket connect...
I have the below Python code which checks whether the ssh host is up or not:`for hostname ,ipaddr in host_dict.items(): if tcp_conn.tcp_port_is_open(ipaddr, constants.TCP_PORT, constants.TCP_TIMEOUT)...
View ArticleHow to configure two cucumber runner files in jenkins file
As we know when any feature file failed we are storing in a text file. To run that failed.txt file we are using 2nd runner file. If we run second runner file it is executing the failed one only.Is...
View ArticleDefaultErrorHandler to handle timeout exception for Kafka consumer
I am facing timeout exception due to various reasons with my Spring Kafka consumer. I am using the following configs to define my consumer factory with error handler.@Bean public...
View ArticleRetry sending blank parameters for HTTP Post Request
When our retry code executes, it does a http post request passing in a parameter body.The parameter body has data in it during debugging.However, the http request content is blank, thus sending the...
View ArticleCustom backoffs in nestjs bullmq
I want to set the custom backoff for my queue in nestjs.BullModule.registerQueue({ name: POST_QUEUES.PARSE_POST_QUEUE, defaultJobOptions: { backoff: { type: 'exponential', delay:...
View ArticleHow do I implement retries for WCF clients?
I have a C# client implementing System.ServiceModel.ClientBase<TChannel> for communication with a SOAP API.I want the client to automatically retry requests when timeouts occur.I figure I could...
View ArticleUsing Polly v8 and RestSharp, how would I build a Generic ResiliencePipeline...
I have an API client class built using _client = new RestSharp.RestClient(...); with methods of this form:public async Task<TResponse> PostAsync<TRequest, TResponse>(string resource,...
View ArticleMigration from Polly to Microsoft.Extensions.Http.Resilience - Extend...
I want to migrate from Polly to the Microsoft.Extensions.Http.ResilienceAddStandardResilienceHandler. My shortened Polly code is the following:services.AddHttpClient<MyService>()...
View ArticleSpring Retry using .retryOn and .notRetryOn
I am trying to execute the spring retry functionality in a certain code base using the imperative style. I want to retry only on RuntimeException, but not on NullPointerException. NullPointerException...
View ArticleDoes my design violate the Liskov Substitution Principle?
I'm working on a Spring Boot application with the following structure for sending messagespublic interface MessageService { void send(String message);}@Component("SendEmailService")public class...
View ArticleUnit test Polly - Check whether the retry policy is triggered on timeout / error
Problem stmt : I have a service which fetches result from graphql sometime due to server issue the service might throw 500 errorSolution: To resolve the above issue I needed to write a retry logic to...
View ArticleUsing .NET8, on a "HttpIOException: The response ended prematurely", how can...
developing a .Net8 application and currently having a need to perform http request retries when the connection ended prematurely (see ResponseEnded here)...I wonder if I can use resilience mechanism...
View ArticleWhy is Task.Delay(1) necessary to advance clock when unit testing with .NET...
I have configured a retry based pipeline with Polly.// Using Polly for retry logicprivate readonly ResiliencePipeline _retryPipeline = new ResiliencePipelineBuilder { TimeProvider = timeProvider }...
View Articleoptimising retry count in an application [closed]
I have an application that for various reasons has to do quite a large number of retries before a particular http request completes successfully. However the number of successful completes reduces...
View ArticleHow to test whether Retry Configuration is Working or not in Google Cloud...
I have Configured Retry Configuration for google cloud storage operations@Beanpublic Storage getGCSClient() { logger.debug("Creating GCSClient for Project {}", gcsProjectId); RetrySettings...
View ArticleDefaultErrorHandler is not configurable If @RetryableTopic used for retry and...
Spring boot version : 2.7.6Spring kafka version : 2.8.11Issue:I was trying to handle the deserialization issues in code. To handle such issues in code, I created my own class by...
View ArticleHow to Set Up Step Execution with Custom Retries in Acidic Jobs (Rails)
I'm transitioning from using Sidekiq to Acidic Jobs in my Rails application. I'm relatively new to Acidic Jobs and would appreciate some guidance on setting up step execution for my jobs.Specifically,...
View ArticleThe stream was already consumed. It cannot be read again error using Polly to...
I read this 'Stream was already consumed' error using Polly to retry requests in ASP.NET Core but cannot see where to clone the http request message.So in my code, I register httpclient like:var...
View Article