Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4619

ClusterId should be initialized with the applicationName from MongoClientSettings/Options

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Monitoring
    • None
    • Minor Change
    • Not Needed

      Summary

      The DefaultClusterFactory should create the ClusterId with the constructor that takes a description, and pass the applicationName as the argument. Currently it uses the no-args constructor. This will ensure that any registered ClusterListener}}s have access to the {{applicationName.

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      This has been happening since driver version 4.0.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            ramasai.tadepalli@mongodb.com Ramasai Tadepalli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: