Expose error.ignoreFailures global property (#3481)

* Expose `error.ignoreFailures` global property

The global default `errorChannel` can have more then only one logging subscriber.
There is no guarantee in which order subscribers are called and one of them fails
the rest are not called.

* Expose `spring.integration.channels.error.ignoreFailures` global property for
default `errorChannel` and make it `true` by default for better end-user experience
when it is expected to have error being handled by all the subscribers

* * Fix language in the `whats-new.adoc`

* * Fix `JmsTests` for error channel to propagate an exception

* More language fixes for whats-new.adoc

Co-authored-by: Gary Russell <grussell@vmware.com>

Co-authored-by: Gary Russell <grussell@vmware.com>
This commit is contained in:
Artem Bilan
2021-01-28 17:12:36 -05:00
committed by GitHub
parent 0b63128da6
commit 1c6cf560d7
7 changed files with 26 additions and 8 deletions

View File

@@ -41,6 +41,8 @@ public class ErrorChannelAutoCreationTests {
assertThat(this.errorChannel).isInstanceOf(PublishSubscribeChannel.class);
assertThat(TestUtils.getPropertyValue(this.errorChannel, "dispatcher.requireSubscribers", Boolean.class))
.isTrue();
assertThat(TestUtils.getPropertyValue(this.errorChannel, "dispatcher.ignoreFailures", Boolean.class))
.isTrue();
}
}