Skip to content

Fault tolerance annotations on fallback methods #442

@spyrkob

Description

@spyrkob

Fault tolerance annotations are silently ignored on fallback methods. For example:

   @Fallback(fallbackMethod = "legacyFindBook")
   public Book findBookInOnlineStore(String title) {
      ...
   }

   @Bulkhead(value = 1)
   public Book legacyFindBook(String title) {
      ...
   }

The @Bulkhead on legacyFindBook will be ignored and if there are concurrent calls to findBookInOnlineStore multiple threads will be able to execute the fallback method.

If this is planned maybe it would be useful to print a warning in such cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions