Skip to content

Commit

Permalink
[DBMON-3106][Oracle] Add broken connection handling on Windows (#21037)
Browse files Browse the repository at this point in the history
* Add broken connection handling on Windows

* add changelog
  • Loading branch information
lu-zhengda authored Nov 22, 2023
1 parent 2bec8b0 commit 8e0c479
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/corechecks/oracle-dbm/sql_wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func isConnectionError(err error) bool {
if err == nil {
return false
}
connectionErrors := []string{"ORA-00028", "ORA-01012", "ORA-06413", "database is closed", "bad connection"}
connectionErrors := []string{"ORA-00028", "ORA-01012", "ORA-06413", "database is closed", "bad connection", "connection was aborted"}
for _, e := range connectionErrors {
if strings.Contains(err.Error(), e) {
return true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
fixes:
- |
[DBM] Add Oracle broken connection handling on Windows

0 comments on commit 8e0c479

Please sign in to comment.