On 4/15/2021 10:38 AM, Phill Campbell wrote:
Is there a guide or recommendations for building on Mac OS Catalina?
Which JDK do you use?
This is one of the errors I currently get running the tests.
[junit4] 2> 7123 WARN
(SUITE-TestCircuitBreaker-seed#[597FF1CD7ECC0E37]-worker) [ ]
o.a.s.c.CoreContainer Unable to create
[.../solr/core/src/test-files/solr/userfiles]. Features requiring this directory
may fail.
[junit4] 2> => java.security.AccessControlException: access denied
("java.io.FilePermission” “.../solr/core/src/test-files/solr/userfiles" "write")
[junit4] 2> at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
The relevant part of that as far as I can see is that it is unable to
create the following directory, where ... is probably the root of the
cloned repository or extracted source tarball:
.../solr/core/src/test-files/solr/userfiles
Probably what's happening here is that you're running the tests with a
different user than the one that owns the extracted or cloned files. So
when that particular unit test tries to create a directory, it fails.
It's a basic file permission problem.
This would likely happen with ANY jdk, and it's not a Mac-specific problem.
Thanks,
Shawn