[hibernate-commits] [hibernate/hibernate-search] b1278a: HSEARCH-3739 Better handling of exceptions caused ...

Yoann Rodière noreply at github.com
Fri Oct 25 04:04:56 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: b1278aac06b302681319ae586cdcab46b3019cc0
      https://github.com/hibernate/hibernate-search/commit/b1278aac06b302681319ae586cdcab46b3019cc0
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2019-10-25 (Fri, 25 Oct 2019)

  Changed paths:
    M util/common/src/main/java/org/hibernate/search/util/common/impl/CancellableExecutionCompletableFuture.java
    M util/common/src/test/java/org/hibernate/search/util/common/impl/CancellableExecutionCompletableFutureTest.java

  Log Message:
  -----------
  HSEARCH-3739 Better handling of exceptions caused by interruption in CancellableExecutionCompletableFuture

Previously a cancellation could cause the CompletableFuture to be
completed exceptionally with the failure caused by the interruption,
which is generally not what you want.

It happened randomly, but was witnessed at least once here:
https://travis-ci.com/hibernate/hibernate-search/builds/133506471





More information about the hibernate-commits mailing list