-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for JMX TabularData that uses a CompositeData key #814
Add support for JMX TabularData that uses a CompositeData key #814
Conversation
7e29ad6
to
b747b53
Compare
@adamretter Thanks for the PR! I'm expecting that we will have a release within the week, so I'll have to defer the review until after the release. |
@dhoard Thanks. I don't suppose there might be a chance of getting it into the next release? (cheeky request) |
I'll see what I can do. Can you rebase/retarget the PR based on the As part of the upcoming release, the project is moving to a simplified Gitflow branching strategy. cc @fstab |
@adamretter I changed the PR target and requested a few minor code changes. We also need an integration test for the change. If you rebase your changes on Add a copy of your MBean source to (We don't want a dependency on the ... and add it to ... Copy the Copy the Test ...
Once an initial build is done via |
f37e6e2
to
8c04c3d
Compare
Signed-off-by: Adam Retter <adam.retter@googlemail.com>
8c04c3d
to
acf541a
Compare
@dhoard I have now added the Integration Tests as requested. When I run |
I just checked out your repo/branch and everything passes...
... so I suspect it's an environment issue of some sort. Can you provide your OS version, Java information, and |
..._test_suite/integration_tests/src/test/java/io/prometheus/jmx/test/CompositeKeyDataTest.java
Outdated
Show resolved
Hide resolved
...ration_test_suite/jmx_example_application/src/main/java/io/prometheus/jmx/ExistDbMXBean.java
Show resolved
Hide resolved
… a CompositeData key Signed-off-by: Adam Retter <adam.retter@googlemail.com>
acf541a
to
f541c93
Compare
@adamretter The issue appears to be machine overload, resulting in socket timeouts. The AntuBLUE Test Engine used for integration testing creates a thread for each processor.
You can constrain the thread count by using an environment variable.
You should be able to use |
Thanks @dhoard I will give that a try tomorrow and report back. Also many thanks for your help and support in getting this merged. |
My testing of the PR was successful, so I merged the PR. The test engine issue was fixed and a new version was released. Note: You still may need to define |
* [feature] Add support for JMX TabularData that uses a CompositeData key Signed-off-by: Adam Retter <adam.retter@googlemail.com> * [test] Add Integration Test for support for JMX TabularData that uses a CompositeData key Signed-off-by: Adam Retter <adam.retter@googlemail.com> --------- Signed-off-by: Adam Retter <adam.retter@googlemail.com> Signed-off-by: Doug Hoard <doug.hoard@gmail.com>
* [feature] Add support for JMX TabularData that uses a CompositeData key Signed-off-by: Adam Retter <adam.retter@googlemail.com> * [test] Add Integration Test for support for JMX TabularData that uses a CompositeData key Signed-off-by: Adam Retter <adam.retter@googlemail.com> --------- Signed-off-by: Adam Retter <adam.retter@googlemail.com> Signed-off-by: Doug Hoard <doug.hoard@gmail.com>
Previously the implementation for JMX TabularData did not support TabularData that used composite keys. This PR adds support for that. It also adds a test that should show that this now works.
In eXist-db, we often export data via JMX that uses composite keys for Tabular Data. There is nothing in this PR that is specific to eXist-db, and I suspect the improved functionality in this PR will be be generally useful for all JMX users.