Skip to content

Commit adf31a3

Browse files
authored
[clickhouse] classify ErrQueryProhibited (#3526)
1 parent 132de6e commit adf31a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flow/alerting/classifier.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,10 @@ func GetErrorClass(ctx context.Context, err error) (ErrorClass, ErrorInfo) {
626626
if strings.HasSuffix(chException.Message, "distributed_ddl_task_timeout") {
627627
return ErrorRetryRecoverable, chErrorInfo
628628
}
629+
case chproto.ErrQueryIsProhibited:
630+
if strings.Contains(chException.Message, "Replicated DDL queries are disabled") {
631+
return ErrorRetryRecoverable, chErrorInfo
632+
}
629633
}
630634
var normalizationErr *exceptions.NormalizationError
631635
if isClickHouseMvError(chException) {

0 commit comments

Comments
 (0)