-
Notifications
You must be signed in to change notification settings - Fork 313
[BUG] Validate that routes configured in the sink exist on startup of Data Prepper #5106
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Milestone
Description
Describe the bug
Currently, data prepper does not validate that routes exist on startup, and even during runtime will not throw any errors.
To Reproduce
Steps to reproduce the behavior:
Create a config like
routes:
- route_one: '/my_route == 10'
- route_two: '/my_route == 11'
sink:
- pipeline:
name: "sub-pipeline-1"
routes:
- FIRST_ROUTE
- pipeline:
name: "sub-pipeline-2"
routes:
- SECOND_ROUTE
None of the data will be routed to either pipeline, and there will be no errors or validations
Expected behavior
Throw a validation error when a route is defined in the sink that does not exist. For the above, this may look like
Route "FIRST_ROUTE" does not exist. Configured routes include [resources_route, resource_route]
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. Ubuntu 20.04 LTS]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Type
Projects
Status
Done