Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unit tests of acl failed in workflow #7129

Closed
3 tasks done
caigy opened this issue Aug 8, 2023 · 0 comments · Fixed by #7130
Closed
3 tasks done

[Bug] Unit tests of acl failed in workflow #7129

caigy opened this issue Aug 8, 2023 · 0 comments · Fixed by #7130
Assignees

Comments

@caigy
Copy link
Contributor

caigy commented Aug 8, 2023

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

OS: ubuntu-lastest of github actions

RocketMQ version

branch: develop

JDK Version

JDK 8

Describe the Bug

Test cases of rocketmq-acl failed in 'maven-compile' workflow, e.g.:
https://github.com/apache/rocketmq/actions/runs/5751437949/job/15664815492?pr=7116

Steps to Reproduce

Just trigger the 'maven-compile' workflow in pull requests.

What Did You Expect to See?

Test cases should be passed.

What Did You See Instead?

Some test cases failed for missing configuration files which should be there, e.g.:

Running org.apache.rocketmq.acl.plain.PlainAccessValidatorTest
03:54:18.173 [main] ERROR RocketmqCommon - Error in creating /tmp/97eb870f_27d3_4495_929e_252cc29e5852/access_acl_conf/acl/plain_acl.yml
java.nio.file.NoSuchFileException: /tmp/97eb870f_27d3_4495_929e_252cc29e5852/access_acl_conf/acl/plain_acl.yml
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.createFile(Files.java:632)
	at org.apache.rocketmq.acl.plain.PlainPermissionManager.assureAclConfigFilesExist(PlainPermissionManager.java:198)
	at org.apache.rocketmq.acl.plain.PlainPermissionManager.load(PlainPermissionManager.java:122)
	at org.apache.rocketmq.acl.plain.PlainPermissionManager.<init>(PlainPermissionManager.java:85)
	at org.apache.rocketmq.acl.plain.PlainAccessValidator.<init>(PlainAccessValidator.java:35)
	at org.apache.rocketmq.acl.plain.PlainAccessValidatorTest.init(PlainAccessValidatorTest.java:74)

Additional Context

No response

@caigy caigy self-assigned this Aug 8, 2023
RongtongJin pushed a commit that referenced this issue Aug 10, 2023
* run acl tests sequencially to avoid collision

* disable reuseForks for acl like broker

* Revert "[ISSUE #7135] Temporarily ignoring plainAccessValidator test (#7135)"

This reverts commit 6bc2c84.
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 a pull request may close this issue.

1 participant