Skip to content

Conversation

@Niklaus-xie
Copy link
Contributor

Problem: when validating object state, any Exception will cause
the state to be set to Unknown, which in turn causes ageents
to delete object.

Analysis: Need to only set Unknown when database raises NotFound
excecption, not for any exception. Added catching NotFound exception,
and additonal checking for generic Exception.

(cherry picked from commit a0afd56)

@<reviewer_id>

What issues does this address?

Fixes #
WIP #
...

What's this change do?

Where should the reviewer start?

Any background context?

Problem: when validating object state, any Exception will cause
the state to be set to Unknown, which in turn causes ageents
to delete object.

Analysis: Need to only set Unknown when database raises NotFound
excecption, not for any exception. Added catching NotFound exception,
and additonal checking for generic Exception.

(cherry picked from commit a0afd56)
@Niklaus-xie Niklaus-xie self-assigned this Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants