[hibernate/hibernate-search] f5d3ce: HSEARCH-4566 Introduce shard holder pre-start method
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: f5d3ce18801b4af5a3cea92af68c58ac1927773c
https://github.com/hibernate/hibernate-search/commit/f5d3ce18801b4af5a3ce...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/LuceneIndexManagerImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardHolder.java
Log Message:
-----------
HSEARCH-4566 Introduce shard holder pre-start method
Commit: f23e664374b980a570ca0b567535d08ed1b0cbf9
https://github.com/hibernate/hibernate-search/commit/f23e664374b980a570ca...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/backend/index/spi/IndexManagerImplementor.java
A engine/src/main/java/org/hibernate/search/engine/backend/spi/SavedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/IndexManagerNonStartedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationImpl.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
Log Message:
-----------
HSEARCH-4566 Introduce saved state abstraction
Commit: b31cb7005fd0248e014d4d24741e09214aea1a1c
https://github.com/hibernate/hibernate-search/commit/b31cb7005fd0248e014d...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationBuilder.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationImpl.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
M engine/src/main/java/org/hibernate/search/engine/common/spi/SearchIntegration.java
Log Message:
-----------
HSEARCH-4566 Add restart search integration spi
Commit: 1a78b3951900526d504db93574ef97ad6c27ef66
https://github.com/hibernate/hibernate-search/commit/1a78b3951900526d504d...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/LuceneIndexManagerImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/Shard.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardHolder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/index/impl/IndexAccessorImpl.java
M engine/src/main/java/org/hibernate/search/engine/backend/index/spi/IndexManagerImplementor.java
Log Message:
-----------
HSEARCH-4566 Implement save for restart chain
Commit: 669c0396a93cbf7385985104cda5c9293b50328f
https://github.com/hibernate/hibernate-search/commit/669c0396a93cbf738598...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/IndexManagerBackendContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/LuceneIndexManagerImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/Shard.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardHolder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardingStrategyInitializationContextImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/directory/impl/LocalHeapDirectoryHolder.java
M engine/src/main/java/org/hibernate/search/engine/backend/index/spi/IndexManagerImplementor.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/IndexManagerNonStartedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
Log Message:
-----------
HSEARCH-4566 Implement pre start chain
Commit: d8552091f35db374b2410ac102731fa1ec4c1b34
https://github.com/hibernate/hibernate-search/commit/d8552091f35db374b241...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
A integrationtest/backend/lucene/src/test/java/org/hibernate/search/integrationtest/backend/lucene/index/LuceneIndexRestartFromPreviousIntegrationIT.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/testsupport/util/rule/SearchSetupHelper.java
Log Message:
-----------
HSEARCH-4566 Test transfer directories state
Commit: 3eeddadef9bf4defa2337bc7c0cb4bb7f35d518f
https://github.com/hibernate/hibernate-search/commit/3eeddadef9bf4defa233...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M util/common/src/main/java/org/hibernate/search/util/common/impl/AbstractCloser.java
R util/common/src/main/java/org/hibernate/search/util/common/impl/ClosingOperator.java
M util/common/src/main/java/org/hibernate/search/util/common/impl/SuppressingCloser.java
A util/common/src/main/java/org/hibernate/search/util/common/spi/ClosingOperator.java
Log Message:
-----------
HSEARCH-4566 Promote closing operator to spi
Commit: c1a803e7a99c7d488aeebdd6a11a3946421bce91
https://github.com/hibernate/hibernate-search/commit/c1a803e7a99c7d488aee...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/Shard.java
M engine/src/main/java/org/hibernate/search/engine/backend/spi/SavedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
Log Message:
-----------
HSEARCH-4566 Close saved resources not used on restart
Commit: d0abd041830d5c5efd07f6b4f8559354a397ee5c
https://github.com/hibernate/hibernate-search/commit/d0abd041830d5c5efd07...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
Log Message:
-----------
HSEARCH-4566 Close saved index managers not reused on restart
Commit: 65b0c12dd5c80dc411ecabec54104fc9428ad772
https://github.com/hibernate/hibernate-search/commit/65b0c12dd5c80dc411ec...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/backend/spi/SavedState.java
M engine/src/main/java/org/hibernate/search/engine/logging/impl/Log.java
Log Message:
-----------
HSEARCH-4566 Safer closing of resources in SavedState
Commit: 2267bfb95ec344c8047979d687bede520ea6c0e4
https://github.com/hibernate/hibernate-search/commit/2267bfb95ec344c80479...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/LuceneIndexManagerImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/Shard.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardHolder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardingStrategyInitializationContextImpl.java
M engine/src/main/java/org/hibernate/search/engine/backend/index/spi/IndexManagerImplementor.java
R engine/src/main/java/org/hibernate/search/engine/backend/spi/SavedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/IndexManagerNonStartedState.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationImpl.java
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationPartialBuildStateImpl.java
A engine/src/main/java/org/hibernate/search/engine/common/resources/spi/SavedState.java
Log Message:
-----------
HSEARCH-4566 Move SavedState to a more appropriate package
Commit: 51951025144318a54c0529f62947d7f0b8597c04
https://github.com/hibernate/hibernate-search/commit/51951025144318a54c05...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/common/impl/SearchIntegrationImpl.java
Log Message:
-----------
HSEARCH-4566 Don't expose SearchIntegrationImpl#saveForRestart more than necessary
Commit: 3d845bc84b4159bd8d9e973095636c8b596fcf61
https://github.com/hibernate/hibernate-search/commit/3d845bc84b4159bd8d9e...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/backend/index/spi/IndexManagerImplementor.java
Log Message:
-----------
HSEARCH-4566 Fix javadoc
Commit: ec42a87073ee1154585e6170a762a8bbd72cdfd3
https://github.com/hibernate/hibernate-search/commit/ec42a87073ee1154585e...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/IndexManagerBackendContext.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/Shard.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardHolder.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/ShardingStrategyInitializationContextImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/logging/impl/Log.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/index/impl/IndexAccessorImpl.java
M backend/lucene/src/test/java/org/hibernate/search/backend/lucene/lowlevel/index/impl/IndexAccessorTest.java
M engine/src/main/java/org/hibernate/search/engine/reporting/spi/RootFailureCollector.java
Log Message:
-----------
HSEARCH-4566 Simplify shard startup in Lucene backend
Compare: https://github.com/hibernate/hibernate-search/compare/aca4d0d9ad44...ec42...
2 years, 6 months
[hibernate/hibernate-search] 5c27d8: HSEARCH-4568 Avoid builders that only expose a bui...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: 5c27d8a981c6f3972e18d1018ec26f633f17898f
https://github.com/hibernate/hibernate-search/commit/5c27d8a981c6f3972e18...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchDocumentReferenceProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchEntityProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchEntityReferenceProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchExplanationProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchIdProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchJsonHitProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchScoreProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchSearchProjectionBuilderFactory.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchSourceProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/query/dsl/impl/ElasticsearchSearchQuerySelectStepImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneDocumentProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneDocumentReferenceProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneEntityProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneEntityReferenceProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneExplanationProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneIdProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneScoreProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneSearchProjectionBuilderFactory.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/query/dsl/impl/LuceneSearchQuerySelectStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/DocumentReferenceProjectionOptionsStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/EntityProjectionOptionsStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/EntityReferenceProjectionOptionsStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/IdProjectionOptionsStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/impl/ScoreProjectionOptionsStepImpl.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/spi/StaticProjectionFinalStep.java
R engine/src/main/java/org/hibernate/search/engine/search/projection/spi/DocumentReferenceProjectionBuilder.java
R engine/src/main/java/org/hibernate/search/engine/search/projection/spi/EntityProjectionBuilder.java
R engine/src/main/java/org/hibernate/search/engine/search/projection/spi/EntityReferenceProjectionBuilder.java
R engine/src/main/java/org/hibernate/search/engine/search/projection/spi/IdProjectionBuilder.java
R engine/src/main/java/org/hibernate/search/engine/search/projection/spi/ScoreProjectionBuilder.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/spi/SearchProjectionBuilderFactory.java
M engine/src/main/java/org/hibernate/search/engine/search/query/dsl/impl/DefaultSearchQuerySelectStep.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubIdProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubSearchProjectionBuilderFactory.java
Log Message:
-----------
HSEARCH-4568 Avoid builders that only expose a build() method in projection SPI
Commit: e0e394f0eb9d01ce8afca299e59dae3b625ff069
https://github.com/hibernate/hibernate-search/commit/e0e394f0eb9d01ce8afc...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M integrationtest/mapper/orm/src/test/java/org/hibernate/search/integrationtest/mapper/orm/search/SearchQueryBaseIT.java
M integrationtest/mapper/pojo-base/src/test/java/org/hibernate/search/integrationtest/mapper/pojo/mapping/definition/FieldDefaultBridgeBaseIT.java
M integrationtest/mapper/pojo-base/src/test/java/org/hibernate/search/integrationtest/mapper/pojo/mapping/definition/FieldDefaultBridgeOverridingIT.java
M integrationtest/mapper/pojo-base/src/test/java/org/hibernate/search/integrationtest/mapper/pojo/smoke/AnnotationMappingSmokeIT.java
M integrationtest/mapper/pojo-base/src/test/java/org/hibernate/search/integrationtest/mapper/pojo/smoke/ProgrammaticMappingSmokeIT.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/rule/BackendMock.java
Log Message:
-----------
HSEARCH-4567 Simplify mocking of projections in BackendMock
Commit: 0ea092cffc3a7e03a7520a2e92a64a6f88cbfd7b
https://github.com/hibernate/hibernate-search/commit/0ea092cffc3a7e03a752...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/rule/SearchWorkCall.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubCompositeProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubDefaultProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubEntityProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubFieldProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubIdProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubReferenceProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubSearchProjection.java
Log Message:
-----------
HSEARCH-4567 Rework stub backend to allow for projections that don't consume content from the index
Commit: 97e55e81b19510dfcf97af3c5e79b1491f3e53f2
https://github.com/hibernate/hibernate-search/commit/97e55e81b19510dfcf97...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
A backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchConstantProjection.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/projection/impl/ElasticsearchSearchProjectionBuilderFactory.java
A backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneConstantProjection.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/search/projection/impl/LuceneSearchProjectionBuilderFactory.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/SearchProjectionFactory.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/dsl/spi/AbstractSearchProjectionFactory.java
M engine/src/main/java/org/hibernate/search/engine/search/projection/spi/SearchProjectionBuilderFactory.java
M integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/projection/SearchProjectionIT.java
A util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubConstantProjection.java
M util/internal/integrationtest/common/src/main/java/org/hibernate/search/util/impl/integrationtest/common/stub/backend/search/projection/impl/StubSearchProjectionBuilderFactory.java
Log Message:
-----------
HSEARCH-4567 Constant projections API and implementation
Commit: 53b4327a52185ddfccb5d01c238c3362fd6808fe
https://github.com/hibernate/hibernate-search/commit/53b4327a52185ddfccb5...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-05-09 (Mon, 09 May 2022)
Changed paths:
M documentation/src/main/asciidoc/reference/search-dsl-projection.asciidoc
M documentation/src/test/java/org/hibernate/search/documentation/search/projection/ProjectionDslIT.java
Log Message:
-----------
HSEARCH-4567 Document the constant projection
Compare: https://github.com/hibernate/hibernate-search/compare/12a68bdc33a7...53b4...
2 years, 6 months