Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
8514934
HHH-21154 Treat CUBRID at REPEATABLE_READ like PostgreSQL in Pessimis…
Srltas Nov 16, 2026
a0c627a
Update Jandex to 3.6.1
beikov Nov 13, 2026
34eae2c
HHH-21185 Reject right and full fetch joins in HQL and criteria queries
gavinking Nov 17, 2026
7d63917
HHH-21185 Reject 'fetch' on entity and CTE joins in HQL
gavinking Nov 17, 2026
9c8941e
HHH-21186 Correct LRU access queue accounting on removal
gavinking Nov 17, 2026
fcf1b01
HHH-21186 Reset LIRS eviction state when clearing a segment
gavinking Nov 17, 2026
c4e07a7
HHH-21186 Drain queued accesses when put updates an existing entry
gavinking Nov 17, 2026
08695dc
HHH-21186 Keep new LIRS entries off the recency stack until insertion
gavinking Nov 17, 2026
8e082cd
HHH-21186 Remove unused serialization support from BoundedConcurrentH…
gavinking Nov 17, 2026
425ba58
HHH-21101 - Correct collection history maintenance during action queu…
sebersole Nov 10, 2026
711f6d1
HHH-21102 - Prevent lost mutations when legacy JDBC executors alterna…
sebersole Nov 10, 2026
6a7adee
HHH-21166 - Release deferred audit work when the transaction rolls back
sebersole Nov 16, 2026
f893c04
HHH-21167 - Pass the object type name when binding a null Oracle STRUCT
sebersole Nov 16, 2026
9c3fd61
HHH-21168 - Size casts of converted values from the relational Java type
sebersole Nov 16, 2026
0ec9517
HHH-21169 - Honor explicit SQL Server TIME precision in generated DDL
sebersole Nov 16, 2026
e2b629b
HHH-21170 - Keep nulls when reading nested Oracle XML aggregates
sebersole Nov 16, 2026
6f509da
HHH-21171 - Use the audit column's own mapping for changeset predicates
sebersole Nov 16, 2026
03bb0f0
HHH-21178 - Report EDB current_timestamp as not stable within a trans…
sebersole Nov 16, 2026
9729a5d
HHH-21172 - Emulate multi-column BETWEEN without row-value ordering s…
sebersole Nov 16, 2026
0d5f8fc
HHH-21173 - Resolve or reject embeddable types in procedure and funct…
sebersole Nov 16, 2026
7b905f3
HHH-21102 & HHH-21169 & HHH-21178 - Correct database-specific regress…
sebersole Nov 16, 2026
ecb8ca0
HHH-21156 Negate an already negated comparison predicate
gavinking Nov 17, 2026
13d238d
HHH-21157 Convert an empty SQM junction to a constant predicate
gavinking Nov 17, 2026
763b8ce
HHH-21152 HHH-21153 Apply distinct to, and count, an implicit criteri…
gavinking Nov 17, 2026
7000fc6
HHH-21163 Apply the restriction of a join of a correlated root
gavinking Nov 17, 2026
39ad6db
HHH-21165 Keep the join type of an inner join of a soft-deleted colle…
gavinking Nov 17, 2026
b8c497e
HHH-21128 HHH-21159 HHH-21160 Copy and compare SQM table functions an…
gavinking Nov 17, 2026
53e728e
HHH-21128 HHH-21174 HHH-21176 HHH-21177 Render SQM as HQL which means…
gavinking Nov 17, 2026
3379e63
HHH-21155 HHH-21161 Use the SQM plan key, and ignore case, in keyed p…
gavinking Nov 17, 2026
c40d26f
HHH-21128 Keep joins on correlated paths in their declared HQL join c…
gavinking Nov 17, 2026
3eec7e6
HHH-21128 Test joins which follow, or are, paths from the outer query
gavinking Nov 17, 2026
79acc7c
HHH-21128 Fix correlated join ordering and Spanner SQL rendering
gavinking Nov 17, 2026
5a6e649
HHH-21133 Preserve nonnullable cascading self-references during delet…
gavinking Nov 17, 2026
e908393
HHH-21158 Remove support for HSQLDB versions older than 2.7
beikov Nov 16, 2026
83490d4
HHH-21063 Remove support for PostgreSQL Advanced Server versions olde…
beikov Nov 16, 2026
7cab9ca
Fix nightly issues with PostgreSQL 15 due to wrong version handling f…
beikov Nov 16, 2026
30d5d39
Fix nightly CI failures of CockroachDB and HANA. Replace transaction …
beikov Nov 17, 2026
4981407
HHH-20905 Load restricted to-one targets of native queries by unique …
gavinking Nov 18, 2026
62e957f
Fix incorrect Jenkins credential ID in release; remove unused git cre…
Nov 18, 2026
f4528ec
HHH-21113 Reject @Column on a non-aggregate composite attribute
gavinking Nov 18, 2026
52ae6ff
HHH-21122 Reject @Cache on an attribute which is not a collection
gavinking Nov 18, 2026
e0b6303
HHH-21113 Patch the Jakarta Data TCK's Country entity when extracting…
gavinking Nov 18, 2026
2b2c732
HHH-21122 Check for @Cache on a non-collection attribute in buildProp…
gavinking Nov 18, 2026
d13e54c
Bump com.sap.cloud.db.jdbc:ngdbc
dependabot[bot] Nov 18, 2026
45139c0
Bump com.mchange:c3p0 from 0.15.0 to 0.15.1
dependabot[bot] Nov 18, 2026
f73ba0a
Bump org.codehaus.plexus:plexus-xml from 4.2.0 to 4.2.1
dependabot[bot] Nov 18, 2026
f3fc080
Bump gradle-wrapper from 9.9.0 to 9.9.1
dependabot[bot] Nov 18, 2026
77584b3
HHH-21201 Update Agroal to 3.3
beikov Nov 18, 2026
61f3bad
HHH-21164 Fix wrong rendering of arguments for json_value on some dat…
beikov Nov 16, 2026
a3ab5d4
HHH-21203 reject @OnDelete on an entity class which is not a JOINED s…
gavinking Nov 18, 2026
c2115ff
HHH-21202 reject @Table on an abstract entity class with subclasses i…
gavinking Nov 18, 2026
9936714
HHH-20980 fix: preserve parameterized inner-join locking metadata
xfocus3 Oct 20, 2026
8f03a4c
HHH-21175 Remove unused private and package-private code
Nov 16, 2026
480fd48
HHH-21175 Keep the instance initializer of JdbcTypeFamilyInformation,…
Nov 17, 2026
17ed3b9
HHH-21175 Address review: keep the SQLite error codes and SpatialFunc…
Nov 17, 2026
e9f71e0
HHH-21100 Enable Types.NULL binding for untyped nulls in PostgreSQLLe…
vram00 Nov 10, 2026
c2324ac
HHH-21132: Fix {alias} placeholder not replaced in @Filter on to-one …
Nov 13, 2026
b26ebdb
HHH-21061 Fix ConcurrentModificationException in Session.isDirty()
Nov 9, 2026
e13a828
HHH-19927 Add Kotlin testing capability to hibernate-core
grechkovlad Nov 5, 2026
41ee13d
HHH-19927 Add first Kotlin test to hibernate-core
grechkovlad Nov 5, 2026
4a1d7d3
HHH-19927 Add shared Kotlin BasicEntity and Java interop test
grechkovlad Nov 5, 2026
fee568c
HHH-21175 restore CollectionMutationPlanSupport.bindRemoveRestrictions()
gavinking Nov 19, 2026
f34061b
Revert gitUsernamePassword credential ID to username-and-token.Hibern…
yrodiere Nov 19, 2026
5f09310
Remove vestigial filemgmt.jboss.org credential from release Jenkinsfile
yrodiere Nov 19, 2026
a9ea289
HHH-21061 Detect collections loaded during dirty checking
gavinking Nov 19, 2026
084ce5a
add nullability annotations to metamodel.spi interfaces
gavinking Nov 19, 2026
5a30407
HHH-21118 don't iterate class-name aliases as distinct entity persisters
gavinking Nov 19, 2026
1eb6083
HHH-21118 remove unused import
gavinking Nov 19, 2026
9900c9f
HHH-21086 Use a floating point result type for percentile_cont of an …
shinseongsu Nov 7, 2026
a1826c6
HHH-21189 Use field access for timezone composite embeddables
xfocus3 Nov 17, 2026
3f033a3
HHH-21189 Document property-access timezone storage migration
xfocus3 Nov 18, 2026
3eb063c
HHH-21189 Clarify stored UTC offset in migration note
xfocus3 Nov 18, 2026
251d411
HHH-21120 time zone column attributes are TemporalAttributes
gavinking Nov 19, 2026
e9c4c8e
HHH-21120 SingularAttribute for @CompositeType and @Embedded attributes
gavinking Nov 19, 2026
3d8ee6a
HHH-21110 reject @Id on an entity subclass when the metadata is built
gavinking Nov 19, 2026
2c57c16
HHH-21110 test a Kotlin entity subclass which overrides the id property
gavinking Nov 19, 2026
96ea05e
HHH-20592 embeddable patterns in HQL (#14060)
gavinking Nov 19, 2026
028fa07
HHH-21130 Preserve precedence of enabled filter conditions
xfocus3 Nov 17, 2026
1b45934
HHH-21130 Verify filtered bulk update isolation
xfocus3 Nov 17, 2026
b9d4519
HHH-21206 allow <generated> with an explicit type in <basic> of the m…
gavinking Nov 19, 2026
d791e9d
HHH-21209 keep unique and sql-type of a many-to-one column in transfo…
gavinking Nov 20, 2026
6f2ab7d
HHH-21111 apply on-delete of a one-to-one in mapping XML
gavinking Nov 19, 2026
3fb7b78
HHH-21112 transform a constrained hbm.xml one-to-one to a shared prim…
gavinking Nov 19, 2026
3c74fb0
HHH-21112 respect property-ref and emit valid XML for a transformed o…
gavinking Nov 19, 2026
c568cf5
Update Data TCK companion interfaces for moved method-name queries
gavinking Nov 20, 2026
6cbb9f6
HHH-21195 Fix TimeUtcAsJdbcTimeJdbcType handling of times going befor…
beikov-ai-bot Nov 17, 2026
74cfe14
Remove unused code: phase1-structural
Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ jobs:
# -- generally that requires upgrading bytebuddy after the JDK goes GA.
matrix-json: >-
[
{ "name": "hsqldb 2.6", "rdbms": "hsqldb_2_6" },
{ "name": "mysql 8.4", "rdbms": "mysql_8_4" },
{ "name": "mariadb 10.6", "rdbms": "mariadb_10_6" },
{ "name": "postgis 15", "rdbms": "postgis_15" },
{ "name": "edb 14", "rdbms": "edb_14",
{ "name": "edb 15", "rdbms": "edb_15",
"runs-on": "runs-on/fleet=linux-standard/env=ibm" },
{ "name": "db2 11.5", "rdbms": "db2_11_5",
"timeout": 180,
Expand Down
7 changes: 2 additions & 5 deletions ci/db-params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ if [ "$RDBMS" == "h2" ] || [ "$RDBMS" == "" ]; then
elif [ "$RDBMS" == "hsqldb" ]; then
goal="-Pdb=hsqldb"
dbParam=
elif [ "$RDBMS" == "hsqldb_2_6" ]; then
goal="-Pdb=hsqldb -PdbVersion=${DB_VERSION:-2.6}"
dbParam=
elif [ "$RDBMS" == "mysql" ]; then
goal="-Pdb=mysql"
containerName=mysql
Expand Down Expand Up @@ -45,8 +42,8 @@ elif [ "$RDBMS" == "gaussdb" ]; then
elif [ "$RDBMS" == "edb" ]; then
goal="-Pdb=edb -DdbHost=localhost:5444"
containerName=edb
elif [ "$RDBMS" == "edb_14" ]; then
goal="-Pdb=edb -DdbHost=localhost:5444 -PdbVersion=${DB_VERSION:-14}"
elif [ "$RDBMS" == "edb_15" ]; then
goal="-Pdb=edb -DdbHost=localhost:5444 -PdbVersion=${DB_VERSION:-15}"
containerName=edb
elif [ "$RDBMS" == "oracle" ]; then
goal="-Pdb=oracle"
Expand Down
6 changes: 3 additions & 3 deletions ci/release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pipeline {
configFile(fileId: 'release.config.ssh', targetLocation: "${env.HOME}/.ssh/config"),
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: "${env.HOME}/.ssh/known_hosts")
]) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate-ci.frs.sourceforge.net']) {
// set release version
// update changelog from JIRA
// tags the version
Expand Down Expand Up @@ -211,7 +211,7 @@ pipeline {
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE'),
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')
]) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
sshagent(['ed25519.Hibernate-CI.github.com', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
// performs documentation upload and Sonatype release
// push to github
withEnv([
Expand Down Expand Up @@ -250,7 +250,7 @@ pipeline {
withCredentials([
gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default')
]) {
sshagent( ['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net'] ) {
sshagent( ['ed25519.Hibernate-CI.github.com', 'hibernate-ci.frs.sourceforge.net'] ) {
dir( '.release/hibernate.org' ) {
// Lock to avoid rejected pushes when multiple releases try to clone-commit-push
lock('hibernate.org-git') {
Expand Down
3 changes: 1 addition & 2 deletions ci/snapshot-publish.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ pipeline {
usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'ORG_GRADLE_PROJECT_snapshotsPassword', usernameVariable: 'ORG_GRADLE_PROJECT_snapshotsUsername'),
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN'),
// https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html#account_setup
usernamePassword(credentialsId: 'gradle-plugin-portal-api-key', passwordVariable: 'GRADLE_PUBLISH_SECRET', usernameVariable: 'GRADLE_PUBLISH_KEY'),
gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default')
usernamePassword(credentialsId: 'gradle-plugin-portal-api-key', passwordVariable: 'GRADLE_PUBLISH_SECRET', usernameVariable: 'GRADLE_PUBLISH_KEY')
]) {
withEnv([
"DISABLE_REMOTE_GRADLE_CACHE=true"
Expand Down
8 changes: 2 additions & 6 deletions db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,6 @@ edb() {
edb_17
}

edb_14() {
compose_down "edb"
compose_up "versioned/edb-14/docker-compose.yaml"
edb_setup 14
}

edb_15() {
compose_down "edb"
Expand Down Expand Up @@ -1005,6 +1000,7 @@ SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
SET CLUSTER SETTING jobs.retention_time = '5s';
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.txn.repeatable_read_isolation.enabled = true;
ALTER RANGE default CONFIGURE ZONE USING \"gc.ttlseconds\" = 300;
ALTER DATABASE system CONFIGURE ZONE USING \"gc.ttlseconds\" = 300;
quit
Expand All @@ -1024,6 +1020,7 @@ SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
SET CLUSTER SETTING jobs.retention_time = '5s';
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.txn.repeatable_read_isolation.enabled = true;
SET CLUSTER SETTING kv.range_split.by_load_merge_delay = '5s';
SET CLUSTER SETTING sql.defaults.serial_normalization = 'sql_sequence_cached';
ALTER RANGE default CONFIGURE ZONE USING \"gc.ttlseconds\" = 300;
Expand Down Expand Up @@ -1238,7 +1235,6 @@ if [ -z ${1} ]; then
echo -e "\tedb_17"
echo -e "\tedb_16"
echo -e "\tedb_15"
echo -e "\tedb_14"
echo -e "\thana"
echo -e "\tmariadb"
echo -e "\tmariadb_verylatest"
Expand Down
64 changes: 63 additions & 1 deletion design/collection-flush-processing-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ Approval date: 2026-08-10

Revision history::

* `2026-11-10` -- Approved documentation reconciliation for HHH-21102. Made
coordinator-owned batch lifetime explicit and added alternating-key regression
traceability without changing batching policy or broader acceptance status.

* `2026-11-10` -- Approved documentation reconciliation for HHH-21101. Added
concrete history obligations and regression traceability under the existing
completion/ordering requirements; revision 1.4's broader acceptance status
and unresolved coverage remain unchanged.

* `0.1` -- Initial working specification.
* `0.2` -- Moved detailed cascade planning to a companion specification,
confirmed mutation visibility for interceptor hooks and pre-event listeners, and
Expand Down Expand Up @@ -1384,6 +1393,32 @@ or completion. A semantic mutation containing multiple bindings completes only
after every binding assigned to its physical work succeeds, including any
synthesized fixup.

=== JDBC batch ownership (HHH-21102)

The JDBC coordinator owns batch lifetime. An executor reused across intervening
batch-key switches MUST NOT add work to a batch that the coordinator has already
executed or released. Statement access and subsequent batch additions MUST use
the currently coordinator-owned batch. `MutationExecutorSingleBatched` satisfies
this by reacquiring the batch at both access points rather than caching it.
This clarification supports `CFS-CMP-005` and `CFS-GRP-002`; it does not require
flushing after each row or change the configured batch-size policy.

=== History-table obligations (HHH-21101)

For history-table collections, `CFS-CMP-002`, `CFS-CMP-008`, and `CFS-GRP-005`
include the following obligations. Effective row removal and remove-all MUST
close the corresponding old open history intervals. A logical value or index
change MUST close its old interval and insert its replacement, without recording
temporary positions used during reorder execution. Current-table work remains
in place; history work is additive in both interpreted and snapshot fallback
paths. Explicit execution dependencies MUST order old-interval closures before
replacement history inserts, and completion MUST include all contributed work.

A bulk temporal closure implemented as SQL `UPDATE` MUST retain the remove-all
result-check expectation. Individual row closures MUST retain their per-row
checks. This clarification does not change audit hook applicability or introduce
a separate semantic lifecycle for history operations.

== Speculative Auto-Flush

The target `ActionQueue` SPI has this conceptual shape; exact names and record
Expand Down Expand Up @@ -1859,6 +1894,26 @@ remove-all plus create-all, interpretation freezes
`RemoveAllAndCreateAll` with the same kind of complete current-row projection.
Both queues execute that projection without enumerating the collection again.

=== `CFS-SCN-017`: Collection history maintenance

Given a history-table collection, exercise row removal, an unloaded remove-all,
value replacement, and list swaps/shifts. Current contents and exact historical
intervals MUST reflect the logical changes; temporary positions MUST NOT appear
as history. A failure in history work MUST prevent successful completion and
rollback MUST restore current and historical state. Exercise interpreted and
fallback paths, direct and batched execution, and existing audit controls.

=== `CFS-SCN-018`: Reused executors with alternating batch keys

Given reused executors alternating current-row update, history interval closure,
and history insertion across multiple rows, all intended mutations MUST reach
the database even when key changes execute and release intermediate batches.
Assert exact current/history contents, not only execution counts. Same-key
controls MUST retain threshold and final-tail behavior. Failure controls MUST
prove rollback and resource release. Exercise batch sizes spanning boundaries
and both preservation modes; temporal interpretation is not the cause of this
executor-lifetime contract.

== Test Traceability

[cols="1,4,2",options="header"]
Expand Down Expand Up @@ -1917,7 +1972,14 @@ Both queues execute that projection without enumerating the collection again.
`CollectionRowCompactionTest`, and `GroupedCollectionInsertBindPlanTest` cover
zero/direct/batched completion, failure, queued work, fixups, mutation identity,
compact row grouping, and per-row binding/result checks.
| No known group-level gap.
`HistoryCollectionDecomposerTest` and `TemporalCollectionHistoryRepairTests`
add HHH-21101 history ordering, row/remove-all/value/index mutation, and
completion/failure controls (`CFS-SCN-017`).
`InterleavedMutationExecutorTest` and `TemporalLegacyHistoryBatchTests` add
HHH-21102 alternating-key, exact-row/interval, batch-boundary, rollback, and
enabled/legacy preservation controls (`CFS-SCN-018`).
| No known group-level gap. This is not a claim that every provider or
state-management combination has been verified.

| `CFS-AFL-*`
| `ActionQueueCheckpointTest` invokes the checkpoint contract for both queues and
Expand Down
42 changes: 42 additions & 0 deletions design/collection-flush-processing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Approval date: 2026-08-06

Post-approval clarifications::

* `2026-11-10` -- Reconciled HHH-21102's coordinator-owned JDBC batch lifetime
and added alternating-key/current-history regression obligations. No batching
policy or semantic completion model changed.

* `2026-11-10` -- Reconciled HHH-21101 collection-history maintenance with the
existing dependency and semantic-completion model. This records implemented
repairs, not completion of the proposal's remaining acceptance work.

* `2026-08-06` -- Confirmed that collection diagnostic monitoring surrounds
physical execution and completes before semantic state advancement, cache
work, post-events, callbacks, and statistics. Linked the companion cascade
Expand Down Expand Up @@ -503,6 +511,27 @@ The implementation must maintain the following invariants.
* Batched operations count as complete only after their batch execution succeeds.
* Empty physical plans still complete their logical action exactly once.

History-table augmentation must cover row removal, remove-all (including an
unloaded collection), and logical value/index replacement as well as insertion.
Close the old interval before inserting its replacement; temporary list positions
are execution details, not historical states. Explicit dependencies must order
all old-interval closures before replacement history inserts. All such operations
belong to the enclosing semantic mutation's completion obligations, including
failure handling. Apply the same obligations to interpreted and snapshot fallback
paths without changing audit hook applicability.

Result-check expectations follow the logical operation's cardinality. A temporal
remove-all implemented as SQL `UPDATE` uses its bulk-removal expectation, not a
single-row update expectation. This does not relax individual row checks.

Reusable JDBC mutation executors must resolve the coordinator's current batch
when accessing statements and adding work. A switch to another key may execute
and release a previously obtained batch, so retaining that object across
interleaved executors can silently lose mutations. HHH-21102 repairs this
ownership issue in `MutationExecutorSingleBatched`; it does not impose a new
physical operation order or claim that every other executor lifetime has been
audited.

=== Ordering invariants

* Ordinal ranges do not overlap between logical actions.
Expand Down Expand Up @@ -1918,6 +1947,19 @@ Test multiple logical actions against the same table and shape:
* audit capture occurs before collection state advancement,
* queued-operation completion precedes later work for the same collection.

History-specific controls include `HistoryCollectionDecomposerTest` and
`TemporalCollectionHistoryRepairTests` (HHH-21101): assert exact current/history
contents and interval endpoints after swaps, shifts, removals, clear/recreate,
and owner deletion, plus completion and rollback behavior. These supplement the
existing general lifecycle tests rather than replacing their acceptance criteria.

For HHH-21102, `InterleavedMutationExecutorTest` and
`TemporalLegacyHistoryBatchTests` verify alternating current/history-end/insert
keys across reused executors. Assert exact stored rows and intervals, same-key
batch-size boundaries and final tails, rollback, and retained per-row checks.
Include batching disabled/enabled and temporal preservation disabled/enabled;
this batch-lifetime contract is independent of temporal value interpretation.

=== Event and monitoring tests

Assert per-action invariants for both queue implementations during migration:
Expand Down
50 changes: 48 additions & 2 deletions design/graph-action-queue.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,20 @@ operations.
Self-executing operations should be reserved for lifecycle carriers or work that
is not naturally batchable.

The JDBC coordinator owns the active batch's lifetime. A reusable mutation
executor must not retain a `GroupedBatch` across another executor's batch-key
switch: that batch may already have been executed and released. HHH-21102 makes
`MutationExecutorSingleBatched` resolve the coordinator-owned batch for statement
access and for adding work. This is an executor ownership rule, not a new graph
ordering or batching policy. It applies to legacy collection-history execution
as well as any caller reusing the executor across interleaved keys.

`InterleavedMutationExecutorTest` checks actual stored rows for alternating keys,
same-key threshold/tail execution, and failure rollback. Together with
`TemporalLegacyHistoryBatchTests`, it protects against lost current/history
updates and duplicate open intervals. Do not infer correctness only from batch
counts or resolver calls.

== Core Concepts

`FlushOperation`::
Expand Down Expand Up @@ -374,6 +388,13 @@ Collection contributors distinguish row-scoped and action-scoped hooks:

* `contributeAdditionalInsert` is row-scoped. Use it for one extra operation
per inserted row, such as history-table row mirroring.
* `contributeAdditionalDelete` augments an effective row deletion without
replacing the current-table operation.
* `contributeAdditionalRemove` augments remove-all, including an unloaded
collection's removal.
* `contributeAdditionalUpdate` augments one logical value or position change.
Its context carries the old and new row representations; intermediate temporary
positions used to execute a reorder are not logical history versions.
* `contributeCollectionChange` is action-scoped. Use it for whole-collection
logical notifications, such as audit collection-change collection.
* `contributeValueChange` is row-change-scoped. Use it when a logical in-place
Expand Down Expand Up @@ -456,13 +477,31 @@ For graph queue support:
* standard current-table operations still run,
* contributors append history-table operations,
* entity history support uses additional insert/update/delete operations,
* collection history support uses row-scoped insertion augmentation and
replacement operations where needed.
* collection history support augments insertion, row deletion, remove-all, and
logical value/position changes without replacing the current-table operations.

History-table support is additive unless the logical operation itself must use a
different physical current-table shape.
Keep current-table and history-table mutation concerns distinct.

HHH-21101 makes the collection history obligations explicit. Removal closes the
old open interval; a logical value or position change closes the old interval and
inserts its replacement. List swaps and shifts must record only the logical old
and new positions, never temporary execution positions. Both interpreted changes
and snapshot fallback paths must contribute this work.

All old history intervals for a collection change must close before replacement
history inserts can satisfy an open-interval restriction. The history contributor
uses explicit execution prerequisites, not operation encounter order or ordinal
values. Every additional history operation participates in the existing semantic
mutation completion accounting; history failure prevents successful completion.
Do not broaden the audit collection-change hook's lifecycle scope merely to emit
history removal work.

A bulk temporal closure is a remove-all even when implemented as SQL `UPDATE`.
It uses the remove-all row-count expectation; row-scoped closures retain their
per-row checks.

=== Audit

Audit support is graph-native but transaction-oriented.
Expand Down Expand Up @@ -813,6 +852,13 @@ For soft-delete, temporal, history, and audit, cover:
* order-column/index changes,
* remove-all and recreate paths.

History collection regressions::
`HistoryCollectionDecomposerTest` and `TemporalCollectionHistoryRepairTests`
cover the HHH-21101 additions, dependency ordering, logical position changes,
row/owner removal, and completion/failure behavior. Keep these alongside ordinary,
single-table temporal, and audit controls; history coverage does not establish
all state-management combinations.

Regression tests for defaults::
Keep a focused test proving that an unconfigured factory uses `QueueType.GRAPH`.
Keep explicit `legacy` tests where behavior must remain available until the
Expand Down
21 changes: 0 additions & 21 deletions docker-compose/versioned/edb-14/docker-compose.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose/versioned/postgis-15/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
postgis:
image: ${DB_IMAGE_POSTGIS_15:-docker.io/postgis/postgis:15-3.6@sha256:1d8ecd89be6bad966087db8a147f96a17032e7daec958e392fc620bb40a9ce73}
image: ${DB_IMAGE_POSTGIS_15:-docker.io/postgis/postgis:15-3.7@sha256:1ded7c334574959eb1450865a0a0e55d409460d77771c8ac5d850cfc635e918d}
container_name: postgis
platform: ${POSTGRESQL_PLATFORM:-linux/amd64}
environment:
Expand Down
Loading
Loading