Failing generation example


#1

This is the output of running the generation example.

$ go run vendor/github.com/aerospike/aerospike-client-go/examples/generation.go 2016/11/30 11:23:37 hosts: 127.0.0.1 2016/11/30 11:23:37 port: 3000 2016/11/30 11:23:37 namespace: test 2016/11/30 11:23:37 set: testset 2016/11/30 11:23:37 Put: namespace=test set=testset key=genkey bin=genbin value=genvalue1 2016/11/30 11:23:37 Put: namespace=test set=testset key=genkey bin=genbin value=genvalue2 2016/11/30 11:23:37 Get successful: namespace=test set=testset key=genkey bin=genbin value=genvalue2 generation=2 2016/11/30 11:23:37 Put: namespace=test set=testset key=genkey bin=genbin value=genvalue3 expected generation=2 2016/11/30 11:23:37 Put: namespace=test set=testset key=genkey bin=genbin value=genvalue4 expected generation=9999 2016/11/30 11:23:37 Should have received generation error instead of success. exit status 1


#2

Thanks for letting us know. Line #92 should be:

if ae, ok := err.(ast.AerospikeError); ok && ae.ResultCode() != ast.GENERATION_ERROR {

Sorry for the inconvenience.


#3

Thanks, I guess I should have seen that myself!