aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

Behavior of createIndex changed #94

Closed Aloren closed 6 years ago

Aloren commented 6 years ago

After introducing TaskIndex for dropIndex method in this commit the behavior of createIndex changed for case when index already exists. Previously createIndex if index already existed did not fail with exception. In version 4.1.3 it fails with the following message:

Create index failed: FAIL:200:Index with the same name already exists or this bin has already been indexed.

Is that an expected behavior or regression?

Thanks.

BrianNichols commented 6 years ago

This is the new expected behavior. See release notes:

https://www.aerospike.com/download/client/java/notes.html#4.1.0

Aloren commented 6 years ago

Great. Thank you!

monrealis commented 3 years ago

So what's the idemponent way to create index now?

BrianNichols commented 3 years ago

See https://www.aerospike.com/docs/client/java/usage/incompatible.html and find section "Version 4.1.0 - LDT Removal and Index Exceptions".

monrealis commented 3 years ago

Sure, I see that and I have already done that.

BrianNichols commented 3 years ago

I don't understand your question.