Skip to content

IGNITE-28117 Examples not self-contained - missing or broken setup/teardown causes state leakage#7738

Merged
Pochatkin merged 10 commits intoapache:mainfrom
ashishm07:IGNITE-28117
Mar 12, 2026
Merged

IGNITE-28117 Examples not self-contained - missing or broken setup/teardown causes state leakage#7738
Pochatkin merged 10 commits intoapache:mainfrom
ashishm07:IGNITE-28117

Conversation

@ashishm07
Copy link
Copy Markdown
Contributor

For an example to be self-contained, it must create all required resources (tables, deployment units, caches, etc.) during setup and destroy them once execution completes. Several examples are not following this contract — teardown is either missing or not executing correctly, leaving behind residual state.
Impact:

Failures when re-running an example on the same cluster without a reset
State leakage between examples when run sequentially in ai3tests
Unreliable cyclic stability testing

Acceptance Criteria:

Each example creates all required resources during setup and destroys them on teardown
Re-running the same example back-to-back on the same cluster succeeds
ai3tests can run all examples sequentially without state leakage

Affected examples:
java/org/apache/ignite/example/client/IgniteClientWithConfigExample.java
java/org/apache/ignite/example/client/IgniteClientExample.java
java/org/apache/ignite/example/storage/StorageEngineExample.java
java/org/apache/ignite/example/table/MapperExample.java
java/org/apache/ignite/example/table/TableExample.java
java/org/apache/ignite/example/tx/TransactionsExample.java

@ashish-zs
Copy link
Copy Markdown

Redundant "\n" has been removed for all ExampleTests. Number of files may seem a lot, but the change is minimal

@sk0x50 sk0x50 changed the title IGNITE-28117: Examples not self-contained - missing or broken setup/teardown causes state leakage IGNITE-28117 Examples not self-contained - missing or broken setup/teardown causes state leakage Mar 12, 2026
@Pochatkin Pochatkin merged commit 674735d into apache:main Mar 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants