Skip to content

Fix Trigger Functionality - #2501

Merged
srkukarni merged 1 commit into
apache:masterfrom
srkukarni:fix_trigger
Aug 31, 2018
Merged

Fix Trigger Functionality#2501
srkukarni merged 1 commit into
apache:masterfrom
srkukarni:fix_trigger

Conversation

@srkukarni

Copy link
Copy Markdown
Contributor

Motivation

When we moved to support schemas on functions, we moved away from customSerdeInputMap as the base structure for FunctionDetails, but rather went to inputSpecs. Some parts of the code weren't updated as part of that change. This pr fixes that.

Modifications

Describe the modifications you've done.

Result

After your change, what will change.

@srkukarni
srkukarni requested review from jerrypeng and sijie August 31, 2018 17:38
@srkukarni srkukarni changed the title Fix Trigger Functinality Fix Trigger Functionality Aug 31, 2018
@srkukarni

Copy link
Copy Markdown
Contributor Author

run integration tests
run java8 tests

@srkukarni
srkukarni merged commit 1263043 into apache:master Aug 31, 2018
@srkukarni
srkukarni deleted the fix_trigger branch August 31, 2018 19:21
sijie added a commit to sijie/pulsar that referenced this pull request Sep 12, 2018
*Motivation*

A BC issue was introduced by apache#2501. If a function is submitted by old CLI, which only containers topics to serde map.
The new function worker will fail trigger request because it can't find input specs.

```
17:28:32.105 [function-web-7-9] ERROR org.apache.pulsar.functions.worker.rest.api.FunctionsImpl - Function in trigger function has more than 1 input topics @ /public/default/ex
```

*Changes*

The functions worker should handle BC.

*Tests*

No tests are added here. Since it requires a BC testing framework to be able to submit a function to a new functions worker by old CLI.

Created apache#2569 for adding a BC testing framework to cover such BC issues.
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.

2 participants