[hibernate/hibernate-search] b63730: HSEARCH-3875 Support for validating that integer c...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: b63730293e42afda0e223227538f859041bf4823
https://github.com/hibernate/hibernate-search/commit/b63730293e42afda0e22...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M engine/src/main/java/org/hibernate/search/engine/cfg/impl/KeyContextImpl.java
M engine/src/main/java/org/hibernate/search/engine/cfg/impl/OptionalPropertyContextImpl.java
M engine/src/main/java/org/hibernate/search/engine/cfg/spi/KeyContext.java
M engine/src/main/java/org/hibernate/search/engine/cfg/spi/OptionalPropertyContext.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyInvalidSimpleValuesTest.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyValidMissingValuesTest.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyValidSimpleValuesTest.java
Log Message:
-----------
HSEARCH-3875 Support for validating that integer configuration propeties are positive or strictly positive
Commit: 1e53893f8ece0857ff06e6f36dc4166297e7763f
https://github.com/hibernate/hibernate-search/commit/1e53893f8ece0857ff06...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/client/impl/ElasticsearchClientFactoryImpl.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ElasticsearchLinkImpl.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/index/impl/ElasticsearchIndexManagerImpl.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/orchestration/impl/ElasticsearchBatchingWorkOrchestrator.java
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/resources/impl/BackendThreads.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/index/impl/HashShardingStrategy.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/index/impl/NearRealTimeIOStrategy.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/orchestration/impl/LuceneSerialWorkOrchestratorImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/resources/impl/BackendThreads.java
M integrationtest/mapper/orm-coordination-database-polling/src/test/java/org/hibernate/search/integrationtest/mapper/orm/automaticindexing/coordination/databasepolling/DatabasePollingAutomaticIndexingStaticShardingInvalidConfigurationIT.java
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/DatabasePollingCooordinationStrategy.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/mapping/impl/HibernateOrmMapping.java
Log Message:
-----------
HSEARCH-3875 Validate integer configuration properties that must not be zero or negative
Commit: 120092239cdc1afcfeab4eb18f40570a63caf1c6
https://github.com/hibernate/hibernate-search/commit/120092239cdc1afcfeab...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/client/impl/ElasticsearchClientFactoryImpl.java
M backend/lucene/src/main/java/org/hibernate/search/backend/lucene/lowlevel/writer/impl/IndexWriterSettings.java
M engine/src/main/java/org/hibernate/search/engine/cfg/impl/KeyContextImpl.java
M engine/src/main/java/org/hibernate/search/engine/cfg/spi/KeyContext.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyInvalidSimpleValuesTest.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyValidMissingValuesTest.java
M engine/src/test/java/org/hibernate/search/engine/cfg/spi/ConfigurationPropertyValidSimpleValuesTest.java
Log Message:
-----------
HSEARCH-3875 Rename KeyContext#asInteger to KeyContext#asIntegerPositiveOrZeroOrNegative()
To be clearer about the fact that this method does not validate the
range of values whatsoever, because this is a bad default.
Compare: https://github.com/hibernate/hibernate-search/compare/62d6b84dedb3...1200...
3 years, 1 month
[hibernate/hibernate-orm] 8a2869: HHH-14900 Remove dead logger
by Andrea Boriero
Branch: refs/heads/wip/6.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 8a2869a09ae642a7539fcc085c52e616f86c9f93
https://github.com/hibernate/hibernate-orm/commit/8a2869a09ae642a7539fcc0...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchBuilderImpl.java
Log Message:
-----------
HHH-14900 Remove dead logger
Commit: 9ecd1799a0f408b86d2e9398a41fdb7f310938a6
https://github.com/hibernate/hibernate-orm/commit/9ecd1799a0f408b86d2e939...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchBuilderImpl.java
Log Message:
-----------
HHH-14900 Since the BatchBuilderImpl Service is shared, mutable field jdbcBatchSize should be marked volatile
Commit: aba67cfe6eef2da0534dadf62c8916a65a34a45e
https://github.com/hibernate/hibernate-orm/commit/aba67cfe6eef2da0534dadf...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchBuilderImpl.java
Log Message:
-----------
HHH-14900 BatchBuilderImpl doesn't need to be Configurable
Commit: 5ad60c4b6151fd7eaddef0a112787ebfacb91a86
https://github.com/hibernate/hibernate-orm/commit/5ad60c4b6151fd7eaddef0a...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/batch/JtaWithFailingBatchTest.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/batch/JtaWithStatementsBatchTest.java
M hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingTest.java
Log Message:
-----------
HHH-14900 No need in tests to shadow the jdbcBatchSize field of BatchBuilderImpl extensions
Commit: 959dfea66fae35dc28353bab5c6a12c30e2f26af
https://github.com/hibernate/hibernate-orm/commit/959dfea66fae35dc28353ba...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/FastSessionServices.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
Log Message:
-----------
HHH-14899 Have SessionImpl override the default method getConfiguredJdbcBatchSize
Commit: 7ff73d178f4ae6c0add8ada23a45b979a18591ad
https://github.com/hibernate/hibernate-orm/commit/7ff73d178f4ae6c0add8ada...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsBuilder.java
Log Message:
-----------
HHH-14899 Inconsistent default value for STATEMENT_BATCH_SIZE
Commit: 634c257d93729e1a645eded974a190d13cf6b74b
https://github.com/hibernate/hibernate-orm/commit/634c257d93729e1a645eded...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/test/exceptionhandling/StaleObjectStateExceptionHandlingTest.java
R hibernate-core/src/test/java/org/hibernate/test/exceptionhandling/StateObjectStateExceptionHandlingTest.java
Log Message:
-----------
HHH-14899 Rename test class to fix typo: StateObjectStateExceptionHandlingTest to StaleObjectStateExceptionHandlingTest
Commit: 7f71dca1aee845bd8bfe5055ed6b31c3d912de52
https://github.com/hibernate/hibernate-orm/commit/7f71dca1aee845bd8bfe505...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/test/exceptionhandling/ExceptionExpectations.java
Log Message:
-----------
HHH-14899 StaleObjectStateExceptionHandlingTest should expect a StaleStateException
Commit: cc7498cf3ce621b929197db7b83914a101cae774
https://github.com/hibernate/hibernate-orm/commit/cc7498cf3ce621b929197db...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/UnmodifiableBatchBuilderImpl.java
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/UnmodifiableBatchBuilderInitiator.java
Log Message:
-----------
HHH-14901 Introduce a new BatchBuilder implementation, suitable for immutable code deployments
Commit: a2cbe10e0799af2ea77dc64c57ceeb493f16b203
https://github.com/hibernate/hibernate-orm/commit/a2cbe10e0799af2ea77dc64...
Author: Sanne Grinovero <sanne(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchBuilderImpl.java
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/SharedBatchBuildingCode.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/UnmodifiableBatchBuilderImpl.java
Log Message:
-----------
HHH-14901 Refactor shared code into a single reused method
Commit: 2c3b3cb3d789f05b6457661268a327ecc4caa2d0
https://github.com/hibernate/hibernate-orm/commit/2c3b3cb3d789f05b6457661...
Author: Hibernate-CI <ci(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M changelog.txt
M gradle/version.properties
Log Message:
-----------
5.6.1.Final
Commit: f9bc1a279a22f54dd92eee02a00d3fd6b79f3610
https://github.com/hibernate/hibernate-orm/commit/f9bc1a279a22f54dd92eee0...
Author: Hibernate-CI <ci(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M gradle/version.properties
Log Message:
-----------
5.6.2-SNAPSHOT
Commit: 47593f641258a4db3805a6937740fae4532fdc62
https://github.com/hibernate/hibernate-orm/commit/47593f641258a4db3805a69...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsBuilder.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/BatchBuilderImpl.java
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/SharedBatchBuildingCode.java
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/UnmodifiableBatchBuilderImpl.java
A hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal/UnmodifiableBatchBuilderInitiator.java
M hibernate-core/src/main/java/org/hibernate/internal/FastSessionServices.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/ExceptionExpectations.java
A hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/StaleObjectStateExceptionHandlingTest.java
R hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/StateObjectStateExceptionHandlingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/insertordering/InsertOrderingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/transaction/batch/JtaWithFailingBatchTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/transaction/batch/JtaWithStatementsBatchTest.java
Log Message:
-----------
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
Compare: https://github.com/hibernate/hibernate-orm/compare/0925e48ebf69...47593f6...
3 years, 1 month
[hibernate/hibernate-search] 6347e1: HSEARCH-4297 Extract inTransaction method
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: 6347e1472ad9da9e707005f9a4db9539ac0e788a
https://github.com/hibernate/hibernate-search/commit/6347e1472ad9da9e7070...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventBackgroundProcessor.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/common/spi/TransactionHelper.java
Log Message:
-----------
HSEARCH-4297 Extract inTransaction method
Commit: d054befa1d1d01a480021deef163e7ef3209c840
https://github.com/hibernate/hibernate-search/commit/d054befa1d1d01a48002...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M integrationtest/mapper/orm-spring/src/test/java/org/hibernate/search/integrationtest/spring/jta/timeout/TransactionTimeoutJtaAndSpringOutboxIT.java
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventBackgroundProcessor.java
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventProcessingPlan.java
Log Message:
-----------
HSEARCH-4297 Split transactions rescoping the locking
Commit: 252b2422987cbfdc84eeb9beed40044929ede701
https://github.com/hibernate/hibernate-search/commit/252b2422987cbfdc84ee...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventBackgroundProcessor.java
A mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventLoader.java
A mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventUpdater.java
Log Message:
-----------
HSEARCH-4297 Update events on retry lock loops
Commit: 821455ff16ee8c475f8ded27482f45a7695a2d97
https://github.com/hibernate/hibernate-search/commit/821455ff16ee8c475f8d...
Author: Fabio Massimo Ercoli <fabiomassimo.ercoli(a)gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/DefaultOutboxEventFinder.java
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventBackgroundProcessor.java
Log Message:
-----------
HSEARCH-4306 Remove skip lock from event loading
Commit: 173f54c53032f9eb14cbc4596814e0dba3f8f363
https://github.com/hibernate/hibernate-search/commit/173f54c53032f9eb14cb...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventUpdater.java
Log Message:
-----------
HSEARCH-4297 Sonar: Lambdas should be replaced with method references
Commit: d59c1b07dd5f0eb884d372fefbf4c93c54fb7ee2
https://github.com/hibernate/hibernate-search/commit/d59c1b07dd5f0eb884d3...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventBackgroundProcessor.java
Log Message:
-----------
HSEARCH-4297 Add more comments to explain the multiple transactions in OutboxEventBackgroundProcessor
Commit: 8836b7d68fae19f26f0e959e295d40cb1317a61b
https://github.com/hibernate/hibernate-search/commit/8836b7d68fae19f26f0e...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventUpdater.java
Log Message:
-----------
HSEARCH-4297 Minor optimizations
Commit: 0b0e3566b336e2e87a1c753f3b2a6d3d231736ad
https://github.com/hibernate/hibernate-search/commit/0b0e3566b336e2e87a1c...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm-coordination-database-polling/src/main/java/org/hibernate/search/mapper/orm/coordination/databasepolling/impl/OutboxEventUpdater.java
Log Message:
-----------
HSEARCH-4297 Simplify the code of OutboxEventUpdater
Commit: f7eb3f48969338fe9d5e0d64c4b584f3d83c6da9
https://github.com/hibernate/hibernate-search/commit/f7eb3f48969338fe9d5e...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/common/spi/TransactionHelper.java
Log Message:
-----------
HSEARCH-4297 Remove unnecessary trace on transaction exceptions
Re-throwing the exception should be enough.
Compare: https://github.com/hibernate/hibernate-search/compare/bc9bbb9a7ab8...f7eb...
3 years, 1 month