I have trouble compiling using gradlew build. It c...
# troubleshoot
b
I have trouble compiling using gradlew build. It completes everything successfully up to metadata iotest. It fails for ElasticSearchSystemMetadataServiceTest. setup From the report in metadata-io folder: org.testcontainers.containers.ContainerLaunchException: Container startup failed Full log of the report for ElasticSearchSystemMetadataServiceTest in the attached html file. I have datahub running (using quickstart.sh) in the background and everything is working properly. Is it possible that this is related to not having enough resources (CPU) to perform the build?
1
m
Hi Andrew, It is possible that you are running into issues with resources with docker so please try increasing the resources. We do have a recommendation but I see that docker quickstart is working fine for you. A good starting point is -
Copy code
2 CPUs, 8GB RAM, 2GB Swap area, and 10GB disk space.
Another thing you could try is to run with build with -x test options that will build the modules and not run tests. Later you can do the build for the specific submodule you are working on (including the tests).
b
Great answer. Thank you very much
I increased my CPU resources by a lot but still got the same failure on build at the metadata tests. Omitting metadata iotest makes the build finish successfully. There doesn't seem to be any change in functionality - everything works as expected. Is it possible that if I change the code and compile like this that some parts of the application won't work properly?
m
@brief-lizard-77958: if you are not modifying the
metadata-io
module, then you should not need to re-run
metadata-io:test
to be assured of safety.
b
@mammoth-bear-12532 Good to know, thanks!