[hibernate-commits] [hibernate/hibernate-search] e575e3: HSEARCH-2761 Use a LinkedHashMap to store PerClass...

GitHub noreply at github.com
Thu Jun 8 18:09:16 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: e575e30a737a3713d7f32cbdde42aa9cf81eca05
      https://github.com/hibernate/hibernate-search/commit/e575e30a737a3713d7f32cbdde42aa9cf81eca05
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M engine/src/main/java/org/hibernate/search/engine/impl/WorkPlan.java

  Log Message:
  -----------
  HSEARCH-2761 Use a LinkedHashMap to store PerClassWorks in the WorkPlan

So that order of LuceneWorks for a given class relative to those for
another class is preserved upon successive runs, and is the same from
one machine to another.

This should not change much feature-wise, but should make debugging much
easier in the future.


  Commit: 46add9c4710ad130a126db7d90e0cbef88e56cb4
      https://github.com/hibernate/hibernate-search/commit/46add9c4710ad130a126db7d90e0cbef88e56cb4
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M engine/src/main/java/org/hibernate/search/engine/impl/WorkPlan.java

  Log Message:
  -----------
  HSEARCH-2761 Use a LinkedHashMap to store PerEntityWorks in the WorkPlan

So that relative order of LuceneWorks for a given class is preserved
upon successive runs, and is the same from one machine to another.

This should not change much feature-wise, but should make debugging much
easier in the future.


  Commit: e33aeb9e4affd73108e8595edcd2ac81f30af31e
      https://github.com/hibernate/hibernate-search/commit/e33aeb9e4affd73108e8595edcd2ac81f30af31e
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/impl/ElasticsearchIndexWorkVisitor.java

  Log Message:
  -----------
  HSEARCH-2761 Do not handle inheritance in the Elasticsearch integration

Inheritance is already handled at a higher level by creating multiple
purge works.


  Commit: 77df16035261f2852040037934c2cfe440e1e182
      https://github.com/hibernate/hibernate-search/commit/77df16035261f2852040037934c2cfe440e1e182
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/work/impl/ES5DeleteByQueryWork.java

  Log Message:
  -----------
  HSEARCH-2761 Ignore conflicts in ES5 delete-by-query

Rationale: in our case, Elasticsearch is not our source of truth, some
other component (traditionally a database) is. When we perform a
delete-by-query, it's only to do an index purge, and rebuild the index
after that.
If there is a write to the index concurrently to the purge, it's
generally no big deal: it mainly means the document will be reindexed
just a moment later.


  Commit: 0a2ce67a0c5849f92db99be8505a7540e36518ff
      https://github.com/hibernate/hibernate-search/commit/0a2ce67a0c5849f92db99be8505a7540e36518ff
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/work/impl/ES2DeleteByQueryWork.java
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/work/impl/ES5DeleteByQueryWork.java
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/work/impl/factory/Elasticsearch2WorkFactory.java
    M elasticsearch/src/main/java/org/hibernate/search/elasticsearch/work/impl/factory/Elasticsearch5WorkFactory.java

  Log Message:
  -----------
  HSEARCH-2761 Always refresh indexes before performing a delete-by-query

This should avoid *some* cases where delete-by-query failed due to a
version conflict: those cases where the update was performed
strictly before the delete-by-query (for instance by the same thread).


  Commit: e6f619389bdf35e56faffcc5049bec55c793212e
      https://github.com/hibernate/hibernate-search/commit/e6f619389bdf35e56faffcc5049bec55c793212e
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    A elasticsearch/src/test/java/org/hibernate/search/elasticsearch/test/PurgeIT.java

  Log Message:
  -----------
  HSEARCH-2761 Add a non-regression test for purge failing due to multiple conflicting purges without refreshes


  Commit: f62e8caee6e2c36b14def52ecdf7977fc146e93c
      https://github.com/hibernate/hibernate-search/commit/f62e8caee6e2c36b14def52ecdf7977fc146e93c
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-06-08 (Thu, 08 Jun 2017)

  Changed paths:
    M elasticsearch/src/test/java/org/hibernate/search/elasticsearch/test/PurgeIT.java

  Log Message:
  -----------
  HSEARCH-2761 Add a non-regression test for purge failing due to multiple conflicting writes without refresh


Compare: https://github.com/hibernate/hibernate-search/compare/0ffd781104e1...f62e8caee6e2


More information about the hibernate-commits mailing list