bruno-roustant opened a new pull request, #116: URL: https://github.com/apache/solr-sandbox/pull/116
When follower replicas fetch index from the leader, the encrypted index files are read and copied using the Directory abstraction. In a first time this PR fixes EncryptionDirectory.fileLength(String fileName) to return the logical length of the file, skipping potentially the encryption header. This PR also adds a new test EncryptionIndexFetchingTest which verifies that a follower PULL replica is able to fetch an encrypted index. This part failed without the fileLength fix. But EncryptionIndexFetchingTest also checks that the follower index is encrypted. And this check currently fails because the file indexes are copied using the EncryptionDirectory class which decrypts when reading the files to copy. I have to investigate more to support fully replica index fetching, in a way similar to what has been done for the index backup to not decrypt it when copying it. -- 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...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org