-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make driver print warnings returned by server #383
Conversation
e36b33f
to
d0d3498
Compare
control.go
Outdated
session: session, | ||
quit: make(chan struct{}), | ||
retry: &SimpleRetryPolicy{NumRetries: 3}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be in separate commit, not related to the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
query_executor.go
Outdated
type ExecutableQuery interface { | ||
ExecutableQueryInterface | ||
|
||
borrowForExecution() // Used to ensure that the query stays alive for lifetime of a particular execution goroutine. | ||
releaseAfterExecution() // Used when a goroutine finishes its execution attempts, either with ok result or an error. | ||
execute(ctx context.Context, conn *Conn) *Iter | ||
attempt(keyspace string, end, start time.Time, iter *Iter, host *HostInfo) | ||
retryPolicy() RetryPolicy | ||
speculativeExecutionPolicy() SpeculativeExecutionPolicy | ||
withContext(context.Context) ExecutableQuery | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this split to ExecutableQueryInterface
and ExacutableQuery
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted this back, I wanted to make ExecutableQuery
interface implementable
d0d3498
to
cae9b90
Compare
cae9b90
to
f496ba2
Compare
@sylwiaszunejko , please take a look again |
Time to time server provides usefull information in warnings.
Almost all drivers print it out, we need to make gocql do the same.