Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
CBAS DP
-
Untriaged
-
Unknown
-
CX Sprint 24, CX Sprint 25, CX Sprint 26, CX Sprint 27, CX Sprint 28, CX Sprint 29, CX Sprint 30
Description
|
1. Create bucket test with 1 document
|
2. create connection and shadow dataset:
|
file.txt:
|
use CouchbaseAnalytics;
|
create bucket test with {"bucket":"test","nodes":"172.23.107.182","password":"password"};
|
create shadow dataset test_shadow on test;
|
connect bucket test;
|
|
3. Issue following curl command:
|
curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode "statement@file.txt" http://localhost:8095/analytics/service
|
|
4. issue a query in file1.txt:
|
curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode "statement@file1.txt" http://localhost:8095/analytics/service
|
|
where file1.txt has:
|
use CouchbaseAnalytics;
|
select count(1) from test_shadow;
|
|
Result is correct.
|
|
5. Delete bucket test from the node.
|
|
6. Issue the query in file1.txt again :
|
curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode "statement@file1.txt" http://localhost:8095/analytics/service
|
|
Result is still 1 document .
|
|
Dataset did not get updated even when the bucket was deleted.
|
|