question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable auto-detection in tests that start Hazelcast

See original GitHub issue

Programmatically, it’s something like:

getAutoDetectionConfig().setEnabled(false)

In YAML:

hazelcast:
  network:
    join:
      auto-detection:
        enabled: false

And in XML:

<hazelcast>
    ...
    <network>
        <join>
            <auto-detection enabled="false" />
            ...
        </join>
    </network>
    ...
</hazelcast>

When configured correctly, the node should log the following:

WARNING: [192.168.178.45]:5701 [dev] [4.2.5] No join method is enabled! Starting standalone.

We don’t want to see this:

INFO: [192.168.178.45]:5701 [dev] [4.2.5] Using Multicast discovery

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
snicollcommented, Jul 25, 2022

@adrianbob sure, the issue is yours.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discovering Members by Auto Detection
Discovering Members by Auto Detection ... Auto Detection is a good way to start playing with Hazelcast. It tries to automatically detect the...
Read more >
Hazelcast: How to disable auto-discovery during tests?
To build the project I use mvn clean package command. In this maven build process, tests are run and Spring context wakes up....
Read more >
Faster startup of hazelcast in tests - RManniBucau
The trick to reduce hazelcast startup time is to use an "embedded discovery ... is to disable port auto-increment and disable autodetection, ...
Read more >
[Longish] New to hazelcast: Questions about discovery and ...
By default, Hazelcast tries to automatically detect the applicable discovery mechanism based on the runtime environment.
Read more >
AutoDetectionConfig (Hazelcast Root 4.1 API)
For example, it will automatically use the hazelcast-aws plugin if run on an AWS instance. ... Enables or disables the auto detection join...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found