[crac] RFR: 8346178: [CRaC] Failure in com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java

Timofei Pushkin duke at openjdk.org
Fri Dec 13 15:19:25 UTC 2024


The test takes all dcmd commands and invokes each to check if a command exceeds permissions set up in the test.

This fix simply excludes `jdk.checkpoint` command from the test and keeps the rest of the test logic untouched. This approach was chosen because (1) checkpointing requires many permissions and it would be better to create a separate test for this if we want to "document" these permissions since the current test does not separate permission sets by commands, (2) the test would need additional adjustments to actually perform a checkpoint due to the CRaC specifics.

-------------

Commit messages:
 - 8346178: [CRaC] Failure in com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java

Changes: https://git.openjdk.org/crac/pull/161/files
  Webrev: https://webrevs.openjdk.org/?repo=crac&pr=161&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346178
  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/crac/pull/161.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/161/head:pull/161

PR: https://git.openjdk.org/crac/pull/161


More information about the crac-dev mailing list