Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

correctly return error from NewCassandraStore() #1111

Merged
merged 1 commit into from
Oct 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion store/cassandra/cassandra.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func NewCassandraStore(config *StoreConfig, ttls []uint32) (*CassandraStore, err
if _, ok := keyspaceMetadata.Tables[table.Name]; !ok {
log.Warnf("cassandra table %s not found; attempt: %v", table.Name, attempt)
if attempt >= 5 {
return nil, err
return nil, fmt.Errorf("cassandra table %s not found after %d attempts", table.Name, attempt)
}
time.Sleep(5 * time.Second)
continue AttemptLoop
Expand Down