Skip to content

Commit

Permalink
Abort on panics
Browse files Browse the repository at this point in the history
See the comment for reasoning
  • Loading branch information
akoshelev committed Dec 12, 2024
1 parent 4f112ad commit db2b416
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipa-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ tempfile = "3"
ipa-metrics-tracing = { path = "../ipa-metrics-tracing" }
ipa-metrics = { path = "../ipa-metrics", features = ["partitions"] }

[profile.release]
# The reason for this is that we are moving towards the direction when helper processes are created per query
# in this case there is no reason to try and preserve the helper instance to serve other queries. Aborting
# makes dealing with the corrupted state easier
panic = 'abort'

[lib]
path = "src/lib.rs"
Expand Down

0 comments on commit db2b416

Please sign in to comment.