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

Miscellaneous updates #262

Merged
merged 12 commits into from
Dec 13, 2022
Merged

Miscellaneous updates #262

merged 12 commits into from
Dec 13, 2022

Conversation

kelvinqian00
Copy link
Collaborator

@kelvinqian00 kelvinqian00 commented Dec 13, 2022

Some things I wanted to fix before the upcoming break ver is released

  • Fix docstrings and formatting
  • Remove some outdated TODOs
  • Replace (dorun (map ...)) with run!
  • Use more util functions in place of Java interop
  • Patch reflection warnings
  • Enable (conn pool) JMX monitoring by default for test (not prod) mode

@kelvinqian00 kelvinqian00 requested a review from milt December 13, 2022 16:49
@@ -11,4 +11,4 @@
:pool-leak-detection-threshold 0
:pool-transaction-isolation nil
:pool-name nil
:pool-enable-jmx false}
:pool-enable-jmx true}
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this just JMX for the conn pool? the description made it seem like it was across the board. Also if the benchmarks use the test profile I'm pretty sure you'll want all JMX off

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes I should've specified that in the description. In fact I was motivated to turn this on since JMX was turned on for other classes, such as Pedestal.

I didn't realize it might affect benching though; if that's true it would be a good reason to revert the change (and add a comment in the config file). I do wonder why it's JMX on the conn pool, and not on other classes, that'll affect this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also if the benchmarks use the test profile I'm pretty sure you'll want all JMX off

Oh didn't see that. Given that all benching has been done with the "some JMX is on" configuration I've talked about, I'm not sure if adding some to the conn pool will affect things that much.

(dorun (map (partial bp/-insert-credential-scope! bk tx) input)))
(run! (partial bp/-insert-credential-scope! bk tx) input))
Copy link
Member

Choose a reason for hiding this comment

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

TIL

@kelvinqian00 kelvinqian00 merged commit 1fbbb37 into main Dec 13, 2022
@kelvinqian00 kelvinqian00 deleted the misc-update branch December 13, 2022 18:18
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.

2 participants