Skip to content

Commit

Permalink
fix typo in "proccessing" (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBeR007 authored Apr 25, 2024
1 parent 8d7f32c commit 0299c77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion router/frontend/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func Frontend(qr qrouter.QueryRouter, cl client.RouterClient, cmngr poolmgr.Pool
spqrlog.Zero.Error().
Uint("client", rst.Client().ID()).Int("tx-status", int(rst.TxStatus())).Err(err).
Msg("client iteration done with error")
if err := rst.UnRouteWithError(rst.ActiveShards(), fmt.Errorf("client proccessing error: %v, tx status %s", err, rst.TxStatus().String())); err != nil {
if err := rst.UnRouteWithError(rst.ActiveShards(), fmt.Errorf("client processing error: %v, tx status %s", err, rst.TxStatus().String())); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/regress/tests/router/expected/error.out
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ERROR: column "ixxxd" does not exist
LINE 1: SELECT * FROM x WHERE ixxxd = 1;
^
SELECT * FROM x WHERE ixxxd = 1 iuwehiuhweui;
ERROR: client proccessing error: error processing query 'SELECT * FROM x WHERE ixxxd = 1 iuwehiuhweui;': syntax error on pos 32, tx status IDLE
ERROR: client processing error: error processing query 'SELECT * FROM x WHERE ixxxd = 1 iuwehiuhweui;': syntax error on pos 32, tx status IDLE
SELECT * FROM x WHERE id = 1;
NOTICE: send query to shard(s) : sh1
id
Expand Down
2 changes: 1 addition & 1 deletion test/regress/tests/router/expected/shard_routing.out
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ALTER DISTRIBUTION ds1 ATTACH RELATION xxtt1 DISTRIBUTION KEY w_id;
CREATE TABLE xx (w_id int);
NOTICE: send query to shard(s) : sh1,sh2
CREATE TABLE xxerr (i int);
ERROR: client proccessing error: error processing query 'CREATE TABLE xxerr (i int);': create table stmt ignored: no sharding rule columns found, tx status IDLE
ERROR: client processing error: error processing query 'CREATE TABLE xxerr (i int);': create table stmt ignored: no sharding rule columns found, tx status IDLE
CREATE TABLE xxtt1 (i int, j int, w_id int);
NOTICE: send query to shard(s) : sh1,sh2
INSERT INTO xx (w_id) VALUES (1);
Expand Down
2 changes: 1 addition & 1 deletion test/regress/tests/router/expected/single_shard_joins.out
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ NOTICE: send query to shard(s) : sh2
(0 rows)

SELECT * FROM sshjt1 a join sshjt1 b WHERE a.i = 12 ON TRUE;
ERROR: client proccessing error: error processing query 'SELECT * FROM sshjt1 a join sshjt1 b WHERE a.i = 12 ON TRUE;': syntax error on pos 37, tx status IDLE
ERROR: client processing error: error processing query 'SELECT * FROM sshjt1 a join sshjt1 b WHERE a.i = 12 ON TRUE;': syntax error on pos 37, tx status IDLE
SELECT * FROM sshjt1 a join sshjt1 b ON TRUE WHERE a.i = 12;
NOTICE: send query to shard(s) : sh2
i | j | i | j
Expand Down
2 changes: 1 addition & 1 deletion test/regress/tests/router/expected/switch_distribution.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\c regress
SET __spqr__distribution = ds1;
ERROR: client proccessing error: setting "__spqr__distribution" is forbidden., tx status IDLE
ERROR: client processing error: setting "__spqr__distribution" is forbidden., tx status IDLE
\c spqr-console

SPQR router admin console
Expand Down

0 comments on commit 0299c77

Please sign in to comment.