RS146BIJAY commented on issue #13387:
URL: https://github.com/apache/lucene/issues/13387#issuecomment-2194731622

   Thanks a lot for suggestions @jpountz  and @mikemccand. 
   
   As suggested above, we worked on a POC to explore using separate IndexWriter 
for different groups. Each IndexWriter is associated with a distinct logical 
filter directories, which attaches a filename prefix according to the group. 
These directories are backed by a single multi tenant directory. However this 
approach presents several challenges on the Client (OpenSearch) side. Each 
IndexWriter now generates its own sequence number. In a service like OpenSearch 
where Translog operates based on sequence numbers at the Lucene Index level. 
When the same sequence number is generated across different IndexWriter for a 
same Lucene Index, conflicts can occur during operation like Translog replay. 
Additionally, local and global checkpoints maintained during recovery operation 
in service like OpenSearch require sequence number to be a continuous 
increasing number which won't be valid with multiple IndexWriter.
   
   We did not face these issue when different groups were represented by 
different DWPT pools. This is because there was only a single IndexWriter 
writing to a Lucene Index, generating a continuous increasing sequence number. 
The complexity of handling different segments for different groups is managed 
internally at Lucene level, rather than propagating it to the client side. Feel 
free to share any further suggestions you may have on this.


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to