Details
-
Bug
-
Resolution: Done
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/current/clustersetup/create-bucket.html
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
*Referrer*: https://www.google.sk/
*Screen Resolution*: 1920 x 1080
Description
Hello,
sorry, I don't know where else I should report this, so I wrote it here.
Yesterday I was working on a bug, where in our dev environment was not getting data from server trough Java SDK api, but it work on my local machine.
The code looks like this:
bucket.query(N1qlQuery.simple(Index.createPrimaryIndex().on(bucket.name())));
|
List<N1qlQueryRow> rows = bucket.query(Select.select("*").from(bucket.name())).allRows();
|
This code was the part of the code which take all data and "reindex" them into elasticsearch when ES mapping changed (We don't normaly get all data from bucket at once, and for the future, we will not be in this cas also, but now our app is so small, that this cause no prblem).
So, senarious was theese:
- when my bucket on localhost was called e.g. example it get's all data.
- when my bucket in dev environment was called e.g. example-dev, then it get's no data
- when I renamend the bucket (created new) in dev env. to exampledev, it get's all data
Si I gues, the problem was with the dash.
And to be complete, here are versions we use:
Couchbase server: 4.1.0-5005 Enterprise Edition (build-5005)
Java client: "com.couchbase.client" % "java-client" % "2.2.5"
Reporter: Jakub Uhrik
E-mail: jakuub@bookyourself.com