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

reduce logging and fix typo #9711

Merged
merged 1 commit into from
Jul 17, 2023
Merged

reduce logging and fix typo #9711

merged 1 commit into from
Jul 17, 2023

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented Jul 17, 2023

What this PR does / why we need it:

Logs are too chatty after #9558 was merged. See https://iqss.slack.com/archives/C010LA04BCG/p1689620939737689

Which issue(s) this PR closes:

None

Special notes for your reviewer:

Found during perf testing:

The logging was added a looong time ago: a129c9a. I assume it was just for troubleshooting.

Why is it different now that 5.14? If you look at 5.14 at https://github.com/IQSS/dataverse/blob/v5.13/src/main/java/edu/harvard/iq/dataverse/DatasetPage.java#L1871 you'll see that if (persistentId != null) { was the first in a series of if else clauses. Presumably that first if was executed a lot.

Now instead of } else if (this.getId() != null) {...
... we have if (this.getId() != null) { with no else so it gets executed a lot more. This change was made in 64743bf as part of this PR:

Suggestions on how to test this:

In Docker, without the reduced logging, I see this when I load a dataset:

dev_dataverse>  retreived version: id: 1, state: RELEASED|#]

I've been testing by loading a published dataset landing page.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No

Is there a release notes update needed for this change?:

No

Additional documentation:

None.

@pdurbin pdurbin added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Jul 17, 2023
@coveralls
Copy link

Coverage Status

coverage: 20.392%. remained the same when pulling f29fb82 on reduce-logging into 0661c3a on develop.

@github-actions
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:reduce-logging
ghcr.io/gdcc/configbaker:reduce-logging

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@kcondon kcondon self-assigned this Jul 17, 2023
Copy link
Member

@qqmyers qqmyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Jul 17, 2023
@kcondon kcondon merged commit dde0879 into develop Jul 17, 2023
15 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for QA ⏩ to Done 🚀 Jul 17, 2023
@kcondon kcondon deleted the reduce-logging branch July 17, 2023 20:31
@pdurbin pdurbin added this to the 5.14 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants