Anything related to fail-fast error management strategy, i.e. that software design principle requiring that in case of error a unit of code encapsulation (a module, a function, a method, etc.) should fail in the shortest possible time, reporting a failure to its client code in a clear and unambiguous way.
Questions tagged [fail-fast]
51 questions
43
votes
5 answers
How to make Spring server to start even if database is down?
I'm using a Spring Boot(1.4.7) &…

Cs lee
- 443
- 1
- 4
- 4
34
votes
3 answers
Gracefully handling corrupted state exceptions
Related to this question, I would like to force CLR to let my .NET 4.5.2 app catch Corrupted State Exceptions, for the sole purpose of logging them and then terminating the application. What's the correct way to do this, if I have catch (Exception…

Lou
- 4,244
- 3
- 33
- 72
21
votes
2 answers
How to combine defensive programming techniques together?
The question I want to ask you is quite wide but in the same time it's very concrete. First, I have to say, that I mostly interested in answers which are applicable in the .net environment.
Well, I want to increase the level of the code I produce.…

Igor Soloydenko
- 11,067
- 11
- 47
- 90
19
votes
2 answers
Hystrix Configuration
I am trying to implement hystrix for my application using hystrix-javanica.
I have configured hystrix-configuration.properties as…

Jay
- 429
- 2
- 8
- 23
9
votes
3 answers
How to use failFast in dynamic pipeline in Jenkins
I have pipeline which has dynamic parallel stages and I want my pipeline to fail fast, if any of the stage fail. I tried to add failFast: true but my pipeline is stuck at "Failed at Stage ABC".
stage("Deploy") {
steps {
…

aditi gupta
- 91
- 1
- 1
- 3
7
votes
3 answers
Why are fail fast style programs shorter than defensive style programs?
I have read about how the fail-fast style of programming in languages like Erlang end up with much shorter programs than the defensive style found in most other languages. Is this correct for all types of programs and what is the reasoning for this?

yazz.com
- 57,320
- 66
- 234
- 385
4
votes
0 answers
is there a "fail fast" option for flutter tests?
to save time and money both locally and in CICD
I would like to add "fail fast" to my flutter tests
but I cannot find it in the official docs
is there a way to do that?

aoatmon
- 507
- 4
- 13
4
votes
1 answer
Why I'm not getting ConcurrentModificationException while removing element from ArrayList during iteration
I am using the following code to loop through an arraylist and then removing one element from the arraylist.
Here i'm expecting ConcurrentModificationException. But didn't get that exception. especially when you are checking condition with (n-1)th…

Naveen
- 346
- 2
- 10
4
votes
0 answers
Protractor-fail-fast npm fails spec and doesn't run the rest specs (tests) in config file (using Protractor with Jasmine)
I have an issue while using npm protractor-fail-fast. ( https://www.npmjs.com/package/protractor-fail-fast )
If one spec file is failed, the rest specs will be NOT executed (NOT GOOD).
I'm searching an approach how to fail describe with many 'it'…

Alex Svyatenko
- 41
- 2
4
votes
5 answers
fail-fast iterator
I get this definition : As name suggest fail-fast Iterators fail as soon as they realized that structure of Collection has been changed since iteration has begun.
what it mean by since iteration has begun? is that mean after Iterator…

joy
- 721
- 2
- 11
- 18
3
votes
1 answer
Can I override `$` or `[[` to throw an error instead of NULL when asking for a missing list element?
My hunch is this is an abuse of the R language and there's a good reason this doesn't happen. But I find this to be a perpetual source of insidious errors in code that I'm trying to debug:
MWE
list.1 <- list(a=1,b=2,c=list(d=3))
list.2 <-…

Philip
- 7,253
- 3
- 23
- 31
2
votes
1 answer
java.util.ConcurrentModificationException while mutating an object
I am iterating over a List of CustomObject and while doing this iteration, I am mutating this object by adding a tag to tags list of this custom object. I am not adding or removing any CustomObject to or from customObjects (List). I am still getting…

Mr Matrix
- 1,128
- 2
- 14
- 28
2
votes
1 answer
Spring boot app will not fail fast when custom transaction manager fails to connect
I am making a spring boot app with a custom transactionManager with its own datasource like so. Btw I'm using hikariCP as the datasource
@Configuration
@EnableTransactionManagement
@EnableJpaRespositories(
basePackages =…

anonuser1234
- 511
- 2
- 11
- 24
2
votes
0 answers
ArrayList Failfast ConcurrentModificationException
package com.test;
import java.util.ArrayList;
import java.util.Iterator;
public class TestList {
public static void main(String[] args) {
ArrayList list = new ArrayList<>();
list.add("One");
list.add("Two");
…
2
votes
2 answers
Why isn't ConcurrentModificationException being thrown here?
Look at this little piece of code:
ArrayList al = new ArrayList();
al.add("AA");
al.add("AB");
al.add("AC");
Iterator it = al.iterator();
while(it.hasNext()){
String s = (String)it.next();
if(s.equals("AB")){
al.remove(1);
}
}
Since ArrayList has…

Aakash Verma
- 3,705
- 5
- 29
- 66