Add success state. Just incase.
This commit is contained in:
parent
fe2e23ac27
commit
721e128f29
|
@ -10,19 +10,22 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
STRFTIME_FMT = "%Y-%m-%d %T.%L".freeze
|
STRFTIME_FMT = "%Y-%m-%d %T.%L".freeze
|
||||||
|
|
||||||
# Will never work, but only because it duplicates data (i.e. duplicate keys)
|
# Will never work, but only because it duplicates data (i.e. duplicate keys)
|
||||||
# Will throw a warning.
|
# Will log a warning, but not retry.
|
||||||
SQL_STATES_IGNORE = [
|
SQL_STATES_IGNORE = [
|
||||||
### Constraint Violation
|
### Class: Unqualified Successful Completion
|
||||||
|
# Success. This shouldn't get thrown, but JDBC driver quality varies, so who knows.
|
||||||
|
0000,
|
||||||
|
|
||||||
|
### Class: Constraint Violation
|
||||||
# Integrity constraint violation.
|
# Integrity constraint violation.
|
||||||
23000,
|
23000,
|
||||||
# A violation of the constraint imposed by a unique index or a unique constraint occurred.
|
# A violation of the constraint imposed by a unique index or a unique constraint occurred.
|
||||||
23505
|
23505
|
||||||
]
|
]
|
||||||
|
|
||||||
# Will never work because of SQL statement errors.
|
# Will log an error, but not retry.
|
||||||
# Will throw an error.
|
|
||||||
SQL_STATES_FATAL = [
|
SQL_STATES_FATAL = [
|
||||||
### Data Exception
|
### Class: Data Exception
|
||||||
# Character data, right truncation occurred. Field too small.
|
# Character data, right truncation occurred. Field too small.
|
||||||
22001,
|
22001,
|
||||||
# Numeric value out of range.
|
# Numeric value out of range.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user