Skip to content

Commit

Permalink
fix: refactor sentence
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Oct 16, 2023
1 parent 94e35d4 commit ba053d7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/troubleshooting/mirror-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Here are some common reasons of error.
| CANCELLED | Executed cancel() of rpc from client/server-side or network problems between client and server. |
| INVALID_ARGUMENT | The Dimension of the request vector is NOT the same as Vald Agent's config, the requested vector's ID is empty, or some request payload is invalid. |
| DEADLINE_EXCEEDED | The RPC timeout setting is too short on the client/server side. |
| ALREADY_EXISTS | Request ID is already inserted. This status code is returned when all hosts return `ALREADY_EXISTS`. |
| ALREADY_EXISTS | Request ID is already inserted. This status code is returned when all target hosts return `ALREADY_EXISTS`. |
| NOT_FOUND | Requested ID is NOT inserted. This is the status code of the Update request. |
| INTERNAL | Target Vald cluster or network route has some critical error. |

`0 (OK)` is also returned when all hosts return `OK` or `ALREADY_EXISTS`.
`0 (OK)` is also returned when all target hosts return `OK` or `ALREADY_EXISTS`.

## Update Operation

Expand All @@ -36,11 +36,11 @@ Here are some common reasons of error.
| CANCELLED | Executed cancel() of rpc from client/server-side or network problems between client and server. |
| INVALID_ARGUMENT | The Dimension of the request vector is NOT the same as Vald Agent's config, the requested vector's ID is empty, or some request payload is invalid. |
| DEADLINE_EXCEEDED | The RPC timeout setting is too short on the client/server side. |
| NOT_FOUND | Requested ID is NOT inserted. This status code is returned when all hosts return `NOT_FOUND`. |
| NOT_FOUND | Requested ID is NOT inserted. This status code is returned when all target hosts return `NOT_FOUND`. |
| ALREADY_EXISTS | Request a pair of ID and vector is already inserted. This status code is returned when all hosts return `ALREADY_EXISTS`. |
| INTERNAL | Target Vald cluster or network route has some critical error. |

`0 (OK)` is also returned when all hosts return `OK` or `ALREADY_EXISTS`.
`0 (OK)` is also returned when all target hosts return `OK` or `ALREADY_EXISTS`.

## Upsert Operation

Expand All @@ -53,23 +53,23 @@ Here are some common reasons of error.
| CANCELLED | Executed cancel() of rpc from client/server-side or network problems between client and server. |
| INVALID_ARGUMENT | The Dimension of the request vector is NOT the same as Vald Agent's config, the requested vector's ID is empty, or some request payload is invalid. |
| DEADLINE_EXCEEDED | The RPC timeout setting is too short on the client/server side. |
| ALREADY_EXISTS | Requested pair of ID and vector is already inserted. This status code is returned when all hosts return `ALREADY_EXISTS`. |
| ALREADY_EXISTS | Requested pair of ID and vector is already inserted. This status code is returned when all target hosts return `ALREADY_EXISTS`. |
| INTERNAL | Target Vald cluster or network route has some critical error. |

`0 (OK)` is also returned when all hosts return `OK` or `ALREADY_EXISTS`.
`0 (OK)` is also returned when all target hosts return `OK` or `ALREADY_EXISTS`.

## Remove Operation

The request process may not be completed when the response code is NOT `0 (OK)`.

Here are some common reasons of error.

| name | common reason |
| :---------------- | :---------------------------------------------------------------------------------------------- |
| CANCELLED | Executed cancel() of rpc from client/server-side or network problems between client and server. |
| INVALID_ARGUMENT | The Requested vector's ID is empty, or some request payload is invalid. |
| DEADLINE_EXCEEDED | The RPC timeout setting is too short on the client/server side. |
| NOT_FOUND | Requested ID is NOT inserted. This status code is returned when all hosts return `NOT_FOUND`. |
| INTERNAL | Target Vald cluster or network route has some critical error. |
| name | common reason |
| :---------------- | :--------------------------------------------------------------------------------------------------- |
| CANCELLED | Executed cancel() of rpc from client/server-side or network problems between client and server. |
| INVALID_ARGUMENT | The Requested vector's ID is empty, or some request payload is invalid. |
| DEADLINE_EXCEEDED | The RPC timeout setting is too short on the client/server side. |
| NOT_FOUND | Requested ID is NOT inserted. This status code is returned when all target hosts return `NOT_FOUND`. |
| INTERNAL | Target Vald cluster or network route has some critical error. |

`0 (OK)` is also returned when all hosts return `OK` or `NOT_FOUND`.
`0 (OK)` is also returned when all target hosts return `OK` or `NOT_FOUND`.

0 comments on commit ba053d7

Please sign in to comment.