I am getting below errors in Sync Gateway 2.7.2 CE and Couchbase 6.5.0 CE
`
> [WRN] Error when querying index using statement: [SELECT [op.name, LEAST(meta(
bucket).xattrs._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null),IFMISSING(op.val.del,null)][1] AS seq, [op.name, LEAST(meta(
bucket).xattrs._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null),IFMISSING(op.val.del,null)][2] AS rRev, [op.name, LEAST(meta(
bucket).xattrs._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null),IFMISSING(op.val.del,null)][3] AS rDel, meta(
bucket).xattrs._sync.rev AS rev, meta(
bucket).xattrs._sync.flags AS flags, META(
bucket).id AS id FROM
bucket USE INDEX (sg_channels_x1) UNNEST OBJECT_PAIRS(meta(
bucket).xattrs._sync.channels) AS op WHERE [op.name, LEAST(meta(
bucket).xattrs._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null),IFMISSING(op.val.del,null)] BETWEEN [$channelName, $startSeq] AND [$channelName, $endSeq] ORDER BY seq LIMIT 100] parameters: [map[channelName:947051868695804 endSeq:7566430 startSeq:7483407]] error:[4040] No such prepared statement: 9064b560-4db9-5afa-8820-0fb522f2471b -- base.(*CouchbaseBucketGoCB).Query() at bucket_n1ql.go:76
`
When I manually run the prepare statement on Console, it works fine. I dont see any functional bug however.
This started coming when we moved to multi node sync gateway cluster. On single node same setup was not throwing any such errors.