Skip to content

Conversation

@pniedzielski
Copy link
Collaborator

@pniedzielski pniedzielski commented Jul 28, 2025

There are some legacy types in mqbconfm that don't directly relate to domain configuration, such as Request and Response types.

The Request type can be removed with no issue.

The Response and DomainResolver types are used internally in mqba::ConfigProvider and mqba::DomainResolver, and can be replaced with simple bsl::strings.

TODO

  • One last pass on ConfigProvider
  • Do same refactor to DomainResolver
  • Regenerate code from XSD.

@pniedzielski pniedzielski added the A-Broker Area: C++ Broker label Jul 28, 2025
@pniedzielski pniedzielski force-pushed the cleanup/mqbconf branch 3 times, most recently from f87c208 to d2a8a34 Compare July 30, 2025 19:34
Copy link

@bmq-oss-ci bmq-oss-ci bot left a comment

Choose a reason for hiding this comment

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

Build 2954 of commit 9fb4307 has completed with FAILURE

@pniedzielski pniedzielski force-pushed the cleanup/mqbconf branch 2 times, most recently from 7d639e6 to 763cfeb Compare November 14, 2025 18:27
@pniedzielski pniedzielski force-pushed the cleanup/mqbconf branch 2 times, most recently from 4002be6 to ac5dac9 Compare November 14, 2025 19:57
This patch prepares the failure path of `mqba_configprovider` to not
use `Response` from mqbconfm.  It refactors the return path and adds a
new `enum` with proper return codes.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
…cted

This shows that the log was incorrect.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
Signed-off-by: Patrick M. Niedzielski <[email protected]>
Signed-off-by: Patrick M. Niedzielski <[email protected]>
Signed-off-by: Patrick M. Niedzielski <[email protected]>
Signed-off-by: Patrick M. Niedzielski <[email protected]>
@pniedzielski pniedzielski force-pushed the cleanup/mqbconf branch 2 times, most recently from 2933192 to 00e9611 Compare November 14, 2025 21:19
The `mqba::DomainResolver::executeScript` function declaration has no
implementation, and is otherwise unused.  It was a legacy from before static
domain configuration.  This patch removes this declaration, which also removes
one reference to `mqbconfm::DomainResolver`.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
The `mqbconfm::DomainResolver` generated type is a pair of two
strings: the resolved domain name and the cluster name.  This type is
a legacy from before our current, static domain configuration format.
Rather than keeping this type in `mqbconf.xsd`, which otherwise
describes the static domain configuration format, we can just pass two
strings around.  This patch makes that refactor.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Broker Area: C++ Broker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant