Skip to content

[fix][fn] Return inputSpecs consumerProperties in function GET info - #26217

Merged
nodece merged 1 commit into
apache:masterfrom
Dream95:fix_fn_config
Jul 21, 2026
Merged

nodece merged 1 commit into
apache:masterfrom
Dream95:fix_fn_config

Conversation

@Dream95

@Dream95 Dream95 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #26216

Motivation

Creating or updating a function with inputSpecs[*].consumerProperties works at runtime, but GET /admin/v3/functions/{tenant}/{namespace}/{function} returns an empty consumerProperties map.
The values are stored in FunctionDetails when the function is created. FunctionConfigUtils.convert() already writes them into the proto. They are dropped on the way back out because convertFromDetails() never copied them into ConsumerConfig.

Modifications

Copy consumerProperties from ConsumerSpec in FunctionConfigUtils.convertFromDetails().

Add testConsumerProperties in FunctionConfigUtilsTest.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • ./gradlew :pulsar-functions:pulsar-functions-utils:test --tests org.apache.pulsar.functions.utils.FunctionConfigUtilsTest.testConsumerProperties

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@nodece nodece added this to the 5.0.0-M2 milestone Jul 21, 2026
@nodece
nodece merged commit 90cba32 into apache:master Jul 21, 2026
82 of 84 checks passed
lhotari pushed a commit that referenced this pull request Jul 22, 2026
lhotari pushed a commit that referenced this pull request Jul 22, 2026
@Dream95
Dream95 deleted the fix_fn_config branch July 22, 2026 14:28
sandeep-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 31, 2026
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Function get info drops inputSpecs.consumerProperties

3 participants