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

[CAMEL-21651] Upgrade to Jolokia 2.2.1 #1352

Closed
wants to merge 1 commit into from

Conversation

grgrzybek
Copy link
Contributor

No description provided.

@grgrzybek
Copy link
Contributor Author

To be used with apache/camel#16920

@davsclaus
Copy link
Contributor

oh sorry i hit that and fixed it

@davsclaus davsclaus closed this Jan 24, 2025
@davsclaus
Copy link
Contributor

@grgrzybek I wonder if the CSB unit tests are using multicast discovery or something that can be turned off to make the testing faster.

[INFO] Running org.apache.camel.component.jolokia.springboot.JolokiaComponentAutoConfigurationCustomRestrictorTest

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.4.2)

2025-01-24T14:02:39.688+01:00  INFO 79653 --- [           main] entAutoConfigurationCustomRestrictorTest : Starting JolokiaComponentAutoConfigurationCustomRestrictorTest using Java 17.0.11 with PID 79653 (started by davsclaus in /Users/davsclaus/workspace/camel-spring-boot/components-starter/camel-jolokia-starter)
2025-01-24T14:02:39.689+01:00  INFO 79653 --- [           main] entAutoConfigurationCustomRestrictorTest : No active profile set, falling back to 1 default profile: "default"
2025-01-24T14:02:39.762+01:00  WARN 79653 --- [           main] o.a.c.i.e.DefaultCamelBeanPostProcessor  : No CamelContext defined yet so cannot inject into bean: applicationController
2025-01-24T14:03:39.970+01:00  INFO 79653 --- [           main] org.jolokia                              : Using restrictor org.apache.camel.component.jolokia.springboot.support.MyRestrictor
2025-01-24T14:03:40.034+01:00  INFO 79653 --- [           main] org.jolokia                              : Cannot join multicast group on NIF utun9: Can't assign requested address (setsockopt failed)
2025-01-24T14:03:40.035+01:00  INFO 79653 --- [           main] org.jolokia                              : Cannot join multicast group on NIF utun8: Can't assign requested address (setsockopt failed)
2025-01-24T14:03:40.035+01:00  INFO 79653 --- [           main] org.jolokia                              : Cannot join multicast group on NIF utun7: Can't assign requested address (setsockopt failed)

@grgrzybek
Copy link
Contributor Author

hmm, discovery should be disable by default... I'll check this test.

@grgrzybek
Copy link
Contributor Author

In this test, discovery is enabled:

configuration: org.jolokia.server.core.config.Configuration  = {org.jolokia.server.core.config.StaticConfiguration@5342} 
 configMap: java.util.Map  = {java.util.HashMap@6211}  size = 10
  {@6227} "maxCollectionSize" -> {@6228} "0"
  {@6229} "historyMaxEntries" -> {@6230} "10"
  {@6231} "maxDepth" -> {@6232} "15"
  {@6233} "restrictorClass" -> {@6234} "org.apache.camel.component.jolokia.springboot.support.MyRestrictor"
  {@6235} "discoveryEnabled" -> {@6236} "true"
  {@6237} "agentContext" -> {@6238} "/jolokia"
  {@6239} "maxObjects" -> {@6240} "0"
  {@6241} "debugMaxEntries" -> {@6242} "100"
  {@6243} "debug" -> {@6244} "false"
  {@6245} "agentId" -> {@6246} "56f521c6-jvm"

@grgrzybek
Copy link
Contributor Author

The reason is 09c6c6d
@mcarlett we could disable this in tests which don't check UDP discovery...

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