Skip to content

Add readOnly tests to the tck - #262

Merged
tomjenkinson merged 7 commits into
jakartaee:masterfrom
aidentZhang:addreadonlytests
Aug 14, 2026
Merged

tomjenkinson merged 7 commits into
jakartaee:masterfrom
aidentZhang:addreadonlytests

Conversation

@aidentZhang

@aidentZhang aidentZhang commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Depends on connector-whitebox additions which are here: jakartaee/platform-tck#2732.

Added 4 commits from jakartaee/platform-tck/pull/2462, excluding the connector-whitebox additions.

The tck requires the connector and updated connector-whitebox in the platform-tck repo be built before. Since platform-tck has not moved to EE12 dependencies yet, the #2732 will not be merged for a bit. Similarly, since this change will not build without #2732, it should not be merged yet.

I also amended the TCK tests to not use the setReadOnly method as it was removed earlier here: f9d1dc0

The tck tests now also expect rollback when a user tries to call commit on it (previously it just silently rolled back). This is due to this line in the api (transaction.java):

"When the transaction ends, if requested to commit, the transaction manager must roll back each
* {@code XAResource}, raising {@link RollbackException} to the caller."

The Servlet XMLs have also been moved into the resources folder, and the readonlyxa tests now expect a runtime exception instead of a transactional exception.

Additionally, the tests now run in the EJBLite servlet vehicle instead of dying on a null pointer exception.

The tests runs against jbosstm/narayana#3046 and successfully passes 218 tests. It fails one test attempting to insert with readOnly XAresource but this is expected since Iron Jacamar does not implement extendedXAresource.

@tomjenkinson @scottmarlow @beikov @njr-11

@jta-bot

jta-bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@tomjenkinson

Copy link
Copy Markdown
Contributor

ok to test

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

4 similar comments
@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

1 similar comment
@tomjenkinson

Copy link
Copy Markdown
Contributor

retest this please

@tomjenkinson

Copy link
Copy Markdown
Contributor

I am merging this, the tests fail but we don't have an implementation of readonly in WildFly or GlassFish (that I know of) that we can test with yet. I think the tests should work though!

@tomjenkinson tomjenkinson left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @beikov and @aidentZhang !

@tomjenkinson
tomjenkinson merged commit 0221f8b into jakartaee:master Aug 14, 2026
1 of 2 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