Hi Bruno,
Below are details -
encryption-specific parts of solrconfig.xml
<!-- Config for Solr encryption plugin -->
<directoryFactory name="DirectoryFactory"
class="org.apache.solr.encryption.EncryptionDirectoryFactory">
<str
name="keySupplierFactory">org.apache.solr.encryption.KmsKeySupplierFactory</str>
<str
name="encrypterFactory">org.apache.solr.encryption.crypto.CipherAesCtrEncrypter$Factory</str>
</directoryFactory>
<updateHandler class="org.apache.solr.encryption.EncryptionUpdateHandler">
<updateLog class="org.apache.solr.encryption.EncryptionUpdateLog"/>
</updateHandler>
<requestHandler name="/admin/encrypt"
class="org.apache.solr.encryption.EncryptionRequestHandler"/>
<indexConfig>
<mergePolicyFactory
class="org.apache.solr.encryption.EncryptionMergePolicyFactory">
<str name="wrapped.prefix">delegate</str>
<str name="delegate.class">org.apache.solr.index.TieredMergePolicyFactory</str>
</mergePolicyFactory>
</indexConfig>
<backup>
<repository name="encryptionBackupRepository"
class="org.apache.solr.encryption.EncryptionBackupRepository" default="true">
<str name="delegateRepoName">EncryptionBackupRepository</str>
</repository>
</backup>
full stacktrace
FSIndexOutput(path="/data/easolr-data/test1_shard1_replica_n1/data/index/_0.kdi")********************
[2024-07-08T12:06:13.524] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory ********************* inside
maybeWrapOutput : true********************
[2024-07-08T12:06:13.540] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory EncryptionDirectory ::
createOutput *****************
[2024-07-08T12:06:13.543] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory EncryptionDirectory ::
maybeWrapOutput :: ***************** fileName = _0.fdx
[2024-07-08T12:06:13.543] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory pss is conditions ::
***************** =
[2024-07-08T12:06:13.543] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory setting new key ::
***************** = 1071082519
[2024-07-08T12:06:13.543] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory ********************* inside
maybeWrapOutput keyRef value = : 1071082519********************
[2024-07-08T12:06:13.543] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory KeyId inside
EncryptionDirectory: ref key = 1071082519
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.KeySupplierFactory inside KeySupplierFactory ::
getKeySecret method 1 :[B@291cebda
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.KeySupplierFactory inside KeySupplierFactory ::
getKeySecret method 2 :javax.crypto.spec.SecretKeySpec@155f4
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory inside index encryption
*******************************[B@6009d5a5********************
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory
5555555555555555555555555555555555 ENCRYPTION_MAGIC inside
writeEncryptionHeader 5555555555555555555 777777777
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory writeEncryptionHeader
*******************************
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.crypto.EncryptingIndexOutput *********************
inside EncryptingIndexOutput *********************************
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.crypto.EncryptingIndexOutput
11111111111111111111111111111
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.crypto.EncryptingIndexOutput
22222222222222222222222222
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.crypto.EncryptingIndexOutput **************
Constructor completed - EncryptingIndexOutput() ********************
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory *********************Encrypting
FSIndexOutput(path="/data/easolr-data/test1_shard1_replica_n1/data/index/_0.fdx")********************
[2024-07-08T12:06:13.553] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory ********************* inside
maybeWrapOutput : true********************
[2024-07-08T12:06:13.554] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory
6666666666666666666666666666666665 ENCRYPTION_MAGIC 66666666666666666666666
inside getKeyRefForReading 777777777
[2024-07-08T12:06:13.554] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.EncryptionDirectory KeyId inside
EncryptionDirectory: ref key = 1071082519
[2024-07-08T12:06:13.562] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.KeySupplierFactory inside KeySupplierFactory ::
getKeySecret method 1 :[B@7e967d9
[2024-07-08T12:06:13.562] INFO [commitScheduler-26-thread-1]
org.apache.solr.encryption.KeySupplierFactory inside KeySupplierFactory ::
getKeySecret method 2 :javax.crypto.spec.SecretKeySpec@161e2
[2024-07-08T12:06:13.566] ERROR [commitScheduler-26-thread-1]
org.apache.solr.update.CommitTracker auto commit error...
org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2443)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2576)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:774)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.update.CommitTracker.run(CommitTracker.java:280)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) ~[?:?]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) ~[?:?]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: org.apache.lucene.index.CorruptIndexException: codec header
mismatch: actual header=-2001497724 vs expected header=1071082519
(resource=BufferedChecksumIndexInput(Decrypting
MemorySegmentIndexInput(path="/data/easolr-data/test1_shard1_replica_n1/data/index/_0_Lucene90FieldsIndex-doc_ids_0.tmp")))
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:187)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.codecs.lucene90.compressing.FieldsIndexWriter.finish(FieldsIndexWriter.java:125)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsWriter.finish(Lucene90CompressingStoredFieldsWriter.java:483)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StoredFieldsConsumer.flush(StoredFieldsConsumer.java:104)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexingChain.flush(IndexingChain.java:282)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:396)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:492)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.maybeFlush(DocumentsWriter.java:446)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:636)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:576)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:381)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:366)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:246)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2322)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
... 9 more
[2024-07-08T12:06:13.883] INFO [qtp1936502650-43-test.com-51]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json} status=0 QTime=2
[2024-07-08T12:06:16.123] INFO [qtp1936502650-41-test.com-52]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null path=/admin/cores
params={indexInfo=false&wt=json&_=1720422434223} status=0 QTime=0
[2024-07-08T12:06:16.130] INFO [qtp1936502650-45-test.com-53]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/info/system params={wt=json&_=1720422434224} status=0 QTime=7
[2024-07-08T12:06:16.292] INFO [qtp1936502650-46-test.com-55]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json&_=1720422434224} status=0
QTime=1
[2024-07-08T12:06:16.448] INFO [qtp1936502650-45-test.com-56]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LISTALIASES&wt=json&_=1720422434224}
status=0 QTime=1
[2024-07-08T12:06:18.538] INFO [qtp1936502650-46-test.com-57]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null path=/admin/cores
params={indexInfo=false&wt=json&_=1720422434223} status=0 QTime=0
[2024-07-08T12:06:18.548] INFO [qtp1936502650-41-test.com-58]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/info/system params={wt=json&_=1720422434224} status=0 QTime=10
[2024-07-08T12:06:18.712] INFO [qtp1936502650-41-test.com-61]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json&_=1720422434224} status=0
QTime=2
[2024-07-08T12:06:18.870] INFO [qtp1936502650-45-test.com-62]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LISTALIASES&wt=json&_=1720422434224}
status=0 QTime=2
[2024-07-08T12:07:16.425] INFO [qtp1936502650-68-test.com-63]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json} status=0 QTime=1
[2024-07-08T12:09:16.430] INFO [qtp1936502650-74-test.com-64]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json} status=0 QTime=2
[2024-07-08T12:11:16.429] INFO [qtp1936502650-38-test.com-65]
org.apache.solr.servlet.HttpSolrCall [admin] webapp=null
path=/admin/collections params={action=LIST&wt=json} status=0 QTime=2
[2024-07-08T12:12:19.650] INFO [JettyShutdownThread]
org.eclipse.jetty.server.Server Stopped Server@3574e198{STOPPING}[10.0.19,sto=0]
[2024-07-08T12:12:19.652] INFO [JettyShutdownThread]
org.eclipse.jetty.server.AbstractConnector Stopped
ServerConnector@56e07a08{SSL, (ssl, alpn, h2, http/1.1)}{0.0.0.0:8983}
[2024-07-08T12:12:19.663] INFO [JettyShutdownThread]
org.apache.solr.core.CoreContainer Shutting down CoreContainer
instance=1692092775
[2024-07-08T12:12:19.664] INFO [JettyShutdownThread]
org.apache.solr.cloud.ZkController Remove node as live in
ZooKeeper:/live_nodes/test.com:8983_solr
[2024-07-08T12:12:19.671] INFO [JettyShutdownThread]
org.apache.solr.cloud.ZkController Publish this node as DOWN...
[2024-07-08T12:12:19.672] INFO [JettyShutdownThread]
org.apache.solr.cloud.ZkController Publish node=test.com:8983_solr as DOWN
[2024-07-08T12:12:19.673] INFO [zkCallback-11-thread-5]
org.apache.solr.common.cloud.ZkStateReader Updated live nodes from ZooKeeper...
(1) -> (0)
[2024-07-08T12:12:19.681] INFO [coreCloseExecutor-29-thread-1]
org.apache.solr.core.SolrCore CLOSING SolrCore
org.apache.solr.core.SolrCore@286790f6 test1_shard1_replica_n1
[2024-07-08T12:12:19.682] INFO [coreCloseExecutor-29-thread-1]
org.apache.solr.metrics.SolrMetricManager Closing metric reporters for
registry=solr.core.test1.shard1.replica_n1 tag=SolrCore@286790f6
[2024-07-08T12:12:19.688] INFO [zkCallback-11-thread-5]
org.apache.solr.common.cloud.ZkStateReader A cluster state change:
[WatchedEvent state:SyncConnected type:NodeDataChanged
path:/collections/test1/state.json zxid: 401623] for collection [test1] has
occurred - updating... (live nodes size: [0])
[2024-07-08T12:12:19.688] INFO [zkCallback-11-thread-6]
org.apache.solr.common.cloud.ZkStateReader A cluster state change:
[WatchedEvent state:SyncConnected type:NodeDataChanged
path:/collections/test1/state.json zxid: 401623] for collection [test1] has
occurred - updating... (live nodes size: [0])
[2024-07-08T12:12:19.697] INFO [coreCloseExecutor-29-thread-1]
org.apache.solr.metrics.SolrMetricManager Closing metric reporters for
registry=solr.collection.test1.shard1.leader tag=SolrCore@286790f6
[2024-07-08T12:12:19.702] INFO [coreCloseExecutor-29-thread-1]
org.apache.solr.update.DirectUpdateHandler2 Committing on IndexWriter.close() .
[2024-07-08T12:12:19.702] ERROR [coreCloseExecutor-29-thread-1]
org.apache.solr.update.DirectUpdateHandler2 Error in final commit
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:914)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:927)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4064)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.solr.update.DirectUpdateHandler2.closeWriter(DirectUpdateHandler2.java:969)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.update.DefaultSolrCoreState.closeIndexWriter(DefaultSolrCoreState.java:97)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.update.DefaultSolrCoreState.close(DefaultSolrCoreState.java:412)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.update.SolrCoreState.decrefSolrCoreState(SolrCoreState.java:105)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.core.SolrCore.doClose(SolrCore.java:1800)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.core.SolrCore.close(SolrCore.java:1732)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.core.SolrCores.lambda$close$0(SolrCores.java:128)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:299)
~[solr-solrj-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) ~[?:?]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: org.apache.lucene.index.CorruptIndexException: codec header
mismatch: actual header=-2001497724 vs expected header=1071082519
(resource=BufferedChecksumIndexInput(Decrypting
MemorySegmentIndexInput(path="/data/easolr-data/test1_shard1_replica_n1/data/index/_0_Lucene90FieldsIndex-doc_ids_0.tmp")))
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:187)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.codecs.lucene90.compressing.FieldsIndexWriter.finish(FieldsIndexWriter.java:125)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsWriter.finish(Lucene90CompressingStoredFieldsWriter.java:483)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StoredFieldsConsumer.flush(StoredFieldsConsumer.java:104)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexingChain.flush(IndexingChain.java:282)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:396)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:492)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.maybeFlush(DocumentsWriter.java:446)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:636)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:576)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:381)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:366)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at
org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:246)
~[lucene-core-9.9.2.jar:9.9.2 a2939784c4ca60bc28bf488b5479c02fc2e5e22c -
2024-01-25 09:51:09]
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:2322)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2576)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:774)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at org.apache.solr.update.CommitTracker.run(CommitTracker.java:280)
~[solr-core-9.5.0.jar:9.5.0 cdd27dd15c3a6574032e9b1b92b148ab4e383599 -
gerlowskija - 2024-02-07 15:10:39]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source) ~[?:?]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source) ~[?:?]
... 3 more
Encryption Flow -
There are 2 flows, all call is not going through EncryptionRequestHandler
1.
When calling through -
https://test.com:8983/solr/1151855/admin/encrypt?encryptionKeyId=%2212<https://ec2-18-196-48-48.eu-central-1.compute.amazonaws.com:8983/solr/1151855/admin/encrypt?encryptionKeyId=%2212>
it is using EncryptionRequestHandler
2.
When ingesting document in collection through Solr UI
-https://test.com:8983/solr/#/test1/documents<https://ec2-18-196-48-48.eu-central-1.compute.amazonaws.com:8983/solr/#/test1/documents>
- Solr container is directly calling
org.apache.solr.encryption.EncryptionDirectory.createOutput(String fileName,
IOContext context) method -
Then it is calling maybeWrapOutput(IndexOutput indexOutput) and in this method
keyRef is reslove and process for encryption process.
After completing encryption auto commit is failed because of header code
mismatch. metjod used for matching header is
org.apache.lucene.codecs.CodecUtil.checkHeader(DataInput in, String codec, int
minVersion, int maxVersion)
Auto commit failed - every time
On 2024/07/08 16:24:47 Bruno Roustant wrote:
> Hi Manish,
>
> First, a disclaimer about the encryption module in solr-sandbox. It is in
> sandbox, not integrated (yet) in the Solr project, so there can be some
> road blocks. That said, I'll try to help.
>
> 1- Can you share the encryption-specific parts of your solrconfig.xml file?
> 2- Can you share the full stacktrace for the exception you mentioned?
> 3- How do you trigger the index encryption? Do you call the
> EncryptionRequestHandler?
> 4- Does it happen at the first (auto)commit, or some time later?
>
> Bruno
>
This electronic message may contain proprietary and confidential information of
Verint Systems Inc., its affiliates and/or subsidiaries. The information is
intended to be for the use of the individual(s) or entity(ies) named above. If
you are not the intended recipient (or authorized to receive this e-mail for
the intended recipient), you may not use, copy, disclose or distribute to
anyone this message or any information contained in this message. If you have
received this electronic message in error, please notify us by replying to this
e-mail.