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

Fix typo in PUPPETDB_JAVA_ARGS #201

Closed
wants to merge 1 commit into from
Closed

Conversation

qdii
Copy link

@qdii qdii commented Dec 10, 2023

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2023

CLA assistant check
All committers have signed the CLA.

@ldaneliukas
Copy link
Collaborator

ldaneliukas commented Dec 11, 2023

The proper flag is -Xloggc (see https://docs.oracle.com/javacomponents/jrockit-hotspot/migration-guide/logging.htm)

-Xloggc is not used intentionally, as it was deprecated since Java 9 and using it logs a deprecation warning in PuppetDB logs indicating that it ignores it and uses Xlog:gc instead.

@qdii
Copy link
Author

qdii commented Dec 11, 2023

Hey Linas,

I didn't know about this deprecation, thanks for pointing it out.

However without this fix, installing the helm chart led to the process crash-looping in my cluster. Adding this fix to my values.yaml made it start fine.

Is it possible that the java runtime in the image itself is too old?

@ldaneliukas
Copy link
Collaborator

Hey Linas,

I didn't know about this deprecation, thanks for pointing it out.

However without this fix, installing the helm chart led to the process crash-looping in my cluster. Adding this fix to my values.yaml made it start fine.

Is it possible that the java runtime in the image itself is too old?

Are you positive that the problem was due to this? As I'm constantly redeploying a solution via this chart in the past few days and everything starts properly. Do you have any error logs that it causes?

The use of this was added specifically due to PuppetDB container logging a deprecation warning and saying that it will use this even if you specify Xloggc - you should see this warning in your logs if you change it to Xloggc.

@qdii
Copy link
Author

qdii commented Dec 11, 2023

Just to be sure, I'll try to remove the remove the line from values.yaml tonight, re-deploy the chart and add screenshots.

However, I also noticed that I was using version 8.2.0 of the chart. While 8.2.1 is documented in CHANGELOG.md, I couldn't upgrade to 8.2.1 because it's not been pushed to Artifact hub. This means that a number of fixes are not present, and maybe that's the cause of the difference in behavior between your tests and mine.

I'd recommend also pushing 8.2.1 to Artifact hub, even though 9.0.0 was pushed today, because 8.2.0 is broken — two image names are missing the ghcr.io repository prefix —.

@ldaneliukas
Copy link
Collaborator

@qdii the same change has now been merged in the containers-puppetdb entrypoint is it should really cause now issues. If you want, we can remove it here, since it is now the default anyway.

@qdii
Copy link
Author

qdii commented Dec 18, 2023

Ah thanks! I totally forgot to check. But happy to hear it's solved :) I'll delete it.

@qdii qdii closed this Dec 18, 2023
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.

3 participants