jaydoane commented on PR #4458:
URL: https://github.com/apache/couchdb/pull/4458#issuecomment-1466811380

   > I am still new to this area but I believe introduction of op_regex itself 
will not cause any problems with upgrades. The reason is that it is part of an 
internal data structure that is not shared between nodes during the evaluation 
(not passed around as a message), it is more like a helper to implement the 
selector-to-Lucene-query translation which happens in a single place.
   
   This is exactly what I was unsure about, especially with Mike's recent 
optimization to push selectors to the individual shards. I could have added 
some debug logging to prove to myself it was safe, but I'm happy to hear your 
assurances!
   
   > The only potential problem I see in mixed-version environments is that one 
may node handle the given query differently due to the induced change in the 
index selection process
   
   Yes, I noticed that on node1 with your fix, it returned the document as 
expected, but on the other nodes, it still returned
   ```json
   {
     "docs": [],
     "bookmark": "g2o"
   }
   ```
   which seems expected as well :)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to