Skip to content

Commit

Permalink
Update query used to check for Cassandra connectedness
Browse files Browse the repository at this point in the history
  • Loading branch information
William Guthrie authored and lucasmdrs committed Nov 15, 2023
1 parent f0575f7 commit 3eb1fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/cassandra/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func New(config Config) func(ctx context.Context) error {
return fmt.Errorf("cassandra health check failed on connect: %w", err)
}

err = session.Query("DESCRIBE KEYSPACES;").WithContext(ctx).Exec()
err = session.Query("SELECT * FROM system_schema.keyspaces;").WithContext(ctx).Exec()
if err != nil {
return fmt.Errorf("cassandra health check failed on describe: %w", err)
}
Expand Down

0 comments on commit 3eb1fdc

Please sign in to comment.