Skip to content

Commit

Permalink
[Transform] Improve error message on transform _update conflict (#9…
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek committed Jun 1, 2023
1 parent 0d10286 commit 99cab0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/96432.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 96432
summary: Improve error message on transform `_update` conflict
area: Transform
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class TransformMessages {
"Timed out after [{0}] while waiting for transform [{1}] to stop";
public static final String REST_STOP_TRANSFORM_WAIT_FOR_COMPLETION_INTERRUPT = "Interrupted while waiting for transform [{0}] to stop";
public static final String REST_PUT_TRANSFORM_EXISTS = "Transform with id [{0}] already exists";
public static final String REST_UPDATE_TRANSFORM_CONFLICT = "Transform with id [{0}] got updated in the meantime. Please try again";
public static final String REST_UPDATE_TRANSFORM_CONFLICT =
"Cannot update transform id [{0}] due to a concurrent update conflict. Please retry.";
public static final String REST_UNKNOWN_TRANSFORM = "Transform with id [{0}] could not be found";
public static final String REST_STOP_TRANSFORM_WITHOUT_CONFIG =
"Detected transforms with no config [{0}]. Use force to stop/delete them.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void testConcurrentUpdates() throws Exception {
assertThat(re.getResponse().getStatusLine().getStatusCode(), is(equalTo(409)));
assertThat(
re.getMessage(),
containsString("Transform with id [" + transformId + "] got updated in the meantime. Please try again")
containsString("Cannot update transform id [" + transformId + "] due to a concurrent update conflict. Please retry.")
);
}
}
Expand Down

0 comments on commit 99cab0a

Please sign in to comment.