ilicmiljan / retry-master Goto Github PK
View Code? Open in Web Editor NEWRetryMaster is a flexible and extensible PHP library for handling operation retries.
License: MIT License
RetryMaster is a flexible and extensible PHP library for handling operation retries.
License: MIT License
The ExponentialRandomBackoffPolicy
in the library does not seem to exponentially increase the backoff time as expected.
Here's an example of how this behavior can be reproduced:
ExponentialRandomBackoffPolicy
.The backoff time should increase exponentially between retries when using ExponentialRandomBackoffPolicy
.
There isn't an error message or stack trace for this issue, but the behavior can be observed by monitoring the backoff times between retries.
The current behavior of ExponentialRandomBackoffPolicy
contradicts the expected functionality of this policy, which should provide an exponential backoff time between retries.
When using the NonRepeatingRetryPolicy
in the library, the action does not retry as expected. The last exception stored in the RetryContext
is set before checking if the current exception is different than the last, causing the retry mechanism to fail.
Here's an example of how this behavior can be reproduced:
NonRepeatingRetryPolicy
.The action should retry if the current exception is different than the last exception.
There isn't an error message or stack trace for this issue, but the behavior can be observed by the absence of retries despite different exceptions being thrown.
This issue affects operations that rely on NonRepeatingRetryPolicy
for handling retries. The current behavior contradicts the expected functionality of this policy, which should allow retries when different exceptions are thrown.
MaxAttemptsRetryPolicy
and TimeoutRetryPolicy
in the RetryMaster library do not have default values, unlike the other policies where default values are provided when it makes sense.
Here's an example of how this behavior can be reproduced:
MaxAttemptsRetryPolicy
or TimeoutRetryPolicy
without providing arguments.Consistent with other policies in the library, MaxAttemptsRetryPolicy
and TimeoutRetryPolicy
should have reasonable default values.
There isn't an error message or stack trace for this issue, but the absence of default values can lead to unexpected behavior or failure to instantiate these classes.
The lack of default values for MaxAttemptsRetryPolicy
and TimeoutRetryPolicy
creates an inconsistency in the library's interface and could lead to user errors.
When using MaxAttemptsRetryPolicy
and SimpleRetryPolicy
in the library, the action is retried one time less than specified in constructor parameter.
Here's an example of how this behavior can be reproduced:
MaxAttemptsRetryPolicy
or SimpleRetryPolicy
with a maximum attempts value of n
.n-1
times, instead of n
times as expected.The action should be retried n
times, where n
is the maximum attempts value set in the retry policy.
There isn't an error message or stack trace for this issue, but the behavior can be observed by counting the number of retries that occur for a failing operation.
This issue affects the reliability of operations that rely on MaxAttemptsRetryPolicy
and SimpleRetryPolicy
for handling retries. It's important to ensure that the number of retries matches the expected value to maintain the integrity of these operations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.