Commit c9dade9
authored
Bugfix: Fix crashing in postgres-backed storage (microsoft#1000)
# Pull Request
## Title
In PostgreSQL, attempting to insert a record with conflicting keys fails
(a benign action in MLOS), fails the entire transaction thus preventing
the update of other tables. Splitting the update into two independent
transactions solves the problem.
______________________________________________________________________
## Description
Update tables `trial_status` and `trial` in separate transactions
(that's OK for MLOS) to make sure PG won't fail the update of `trial` if
there is a duplicate record in `trial_status`.
- **Issue link**: Closes microsoft#999
______________________________________________________________________
## Type of Change
- 🛠️ Bug fix
______________________________________________________________________
## Testing
Run TQP benchmark with PostgreSQL storage.1 parent f5b8e63 commit c9dade9
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments