Skip to content

Commit

Permalink
Merge Refresh ring when node UP event received for missing host (#1669)
Browse files Browse the repository at this point in the history
This adds a check for case that was removed in an earlier commit.
  • Loading branch information
martin-sucha committed Mar 27, 2023
2 parents b8a948f + d80175d commit 1d26125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ Adam Burk <[email protected]>
Valerii Ponomarov <[email protected]>
Neal Turett <[email protected]>
Doug Schaapveld <[email protected]>
Steven Seidman <[email protected]>
3 changes: 3 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ func (s *Session) handleNodeUp(eventIp net.IP, eventPort int) {

host, ok := s.ring.getHostByIP(eventIp.String())
if !ok {
if err := s.hostSource.refreshRing(); err != nil && gocqlDebug {
s.logger.Printf("gocql: Session.handleNodeUp: failed to refresh ring: %w\n", err.Error())
}
return
}

Expand Down

0 comments on commit 1d26125

Please sign in to comment.