Skip to content

Conversation

@hellspawn679
Copy link
Owner

No description provided.

mehul and others added 7 commits October 7, 2024 22:52
Signed-off-by: mehul <[email protected]>
fix
Signed-off-by: mehul <[email protected]>
Signed-off-by: mehul <[email protected]>
…in case of db issues (jaegertracing#6061)

## Which problem is this PR solving?
- Resolves jaegertracing#432 
-
jaegertracing#432 (comment)

## Description of the changes

The current [operation names table check
logic](https://github.com/jaegertracing/jaeger/blob/main/plugin/storage/cassandra/spanstore/operation_names.go#L97-L99)
creates `OperationNamesStorage` instance pointing to old schema table in
case of issues with Cassandra.

- Check for the existence of old schema table before fallback
- Make `OperationNamesStorage` constructor `NewOperationsStorage` to
return `error` if both old and new tables doesn't exist or both of their
existence cannot be checked. Since there was no `error` returned from
`NewOperationsStorage` earlier had to update the dependencies and handle
the `error` accordingly.

## How was this change tested?
- Ran all tests
- Ran all-in-one and checked if traces are appearing

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

---------

Signed-off-by: Arunvel Sriram <[email protected]>
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.

3 participants