parsed.Index() might return wrong value
Description
Components
Affects versions
Environment
Link to Log File, atop/blg, CBCollectInfo, Core dump
Release Notes Description
Activity
Ajay Pal Bhullar October 20, 2020 at 11:41 PM
closing as this issue was verified in 6.5.1,6.6.1, and 7.0.0 using the list of test cases here https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0
Ajay Pal Bhullar October 20, 2020 at 10:37 PM
re-verified in 6.6.1-9132 using the tests listed in https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0
Ajay Pal Bhullar October 20, 2020 at 10:15 PM
verified in 7.0.0-3445 using tests listed in https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0
Mihir Kamdar October 19, 2020 at 3:42 PM
Validated on 6.5.1-6311 using the tests listed in https://docs.google.com/spreadsheets/d/1e7H8T6VXAtIn9Ix_-DhdwDHqpB8wfxXks3Olv2VZBZA/edit#gid=0. Works fine.
CB robot October 15, 2020 at 10:25 PM
Build couchbase-server-6.5.1-6311 contains query commit ab512c2 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-41308#icft=MB-41308 parsed.Index() caches wrong value
parsed.Index() caches the wrong element.
Should the same element be requested twice, and caching be on, second time round it may return the wrong value.
Users accessing the same element of an an array twice might receive wrong results, which is unacceptable.