Thanks James for the reply.
But when i try to perform http://[server_base]/$mark-all-resources-for-reindexing I am getting storage partition read error or even if I update a search parameter it automatically tries to re-index the previous concerned resources and throw following error.
determineReadPartitionForRequest(@Nullable RequestDetails theRequest, String theResourceType) theRequest shouldn't be null but it receives null during reindexing.
2021-03-12 00:12:49.754 [qtp338027825-33] INFO fhirtest.access [LoggingInterceptor.java:175] Path[/fhir] Source[] Operation[extended-operation-server $mark-all-resources-for-reindexing ] UA[PostmanRuntime/7.26.8] Params[?type=Practitioner] ResponseEncoding[JSON] Operation[extended-operation-server $mark-all-resources-for-reindexing ] UA[PostmanRuntime/7.26.8] Params[?type=Practitioner] ResponseEncoding[JSON]
2021-03-12 00:12:54.579 [hapi-fhir-jpa-scheduler-clustered-3] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:309] Running 1 reindex jobs: [ResourceReindexJobEntity[id=110,resourceType=<null>,thresholdLow=<null>,thresholdHigh=2021-03-12 00:17:49.748]]
2021-03-12 00:12:54.580 [hapi-fhir-jpa-scheduler-clustered-3] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:359] Performing reindex pass for JOB[110]
2021-03-12 00:13:46.042 [HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool [HikariPool.java:668] HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1m3s70ms461µs475ns).
2021-03-12 00:14:17.412 [hapi-fhir-jpa-scheduler-clustered-3] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:389] Loaded 3 resources for reindexing in 4ms
2021-03-12 00:14:51.496 [ResourceReindex-9] ERROR c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:579] Failed to index resource Practitioner/1/_history/1: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.validateRequestPartitionNotNull(RequestPartitionHelperSvc.java:285)
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.determineReadPartitionForRequest(RequestPartitionHelperSvc.java:114)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1145)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1131)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.doRead(BaseHapiFhirResourceDao.java:1088)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.lambda$read$9(BaseHapiFhirResourceDao.java:1074)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:65)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:56)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.read(BaseHapiFhirResourceDao.java:1074)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy249.read(Unknown Source)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.lambda$call$0(ResourceReindexingSvcImpl.java:563)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:544)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:519)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-03-12 00:14:54.723 [ResourceReindex-9] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:598] Setting resource PID[1] status to ERRORED
2021-03-12 00:14:54.724 [ResourceReindex-9] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:467] Marking resource with PID 1 as indexing_failed
2021-03-12 00:14:55.344 [qtp338027825-27] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:236] Marking all resources of type Practitioner for reindexing - Got job ID[111]
2021-03-12 00:14:55.351 [qtp338027825-27] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:236] Marking all resources of type StructureDefinition for reindexing - Got job ID[112]
2021-03-12 00:15:18.600 [ResourceReindex-9] ERROR c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:579] Failed to index resource Practitioner/52/_history/1: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.validateRequestPartitionNotNull(RequestPartitionHelperSvc.java:285)
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.determineReadPartitionForRequest(RequestPartitionHelperSvc.java:114)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1145)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1131)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.doRead(BaseHapiFhirResourceDao.java:1088)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.lambda$read$9(BaseHapiFhirResourceDao.java:1074)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:65)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:56)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.read(BaseHapiFhirResourceDao.java:1074)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy249.read(Unknown Source)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.lambda$call$0(ResourceReindexingSvcImpl.java:563)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:544)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:519)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-03-12 00:15:18.602 [ResourceReindex-9] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:598] Setting resource PID[52] status to ERRORED
2021-03-12 00:15:18.602 [ResourceReindex-9] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:467] Marking resource with PID 52 as indexing_failed
2021-03-12 00:15:18.607 [hapi-fhir-jpa-scheduler-local-2] INFO c.u.f.j.s.r.SearchParamRegistryImpl [SearchParamRegistryImpl.java:275] Updating 1 search parameters in SearchParamRegistry
2021-03-12 00:15:18.609 [hapi-fhir-jpa-scheduler-local-2] INFO c.u.f.j.s.r.SearchParamRegistryImpl [SearchParamRegistryImpl.java:119] Rebuilding SearchParamRegistry
2021-03-12 00:15:19.696 [hapi-fhir-jpa-scheduler-clustered-3] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:448] Completed pass of reindex JOB[110] - Indexed 3 resources in 00:02:25 (0.0 / sec) - Have indexed until: InstantType[2021-03-12T00:10:52.202+05:30]
2021-03-12 00:15:19.702 [hapi-fhir-jpa-scheduler-local-2] INFO c.u.f.j.s.r.JpaSearchParamCache [JpaSearchParamCache.java:154] Have 0 unique search params
2021-03-12 00:15:19.720 [qtp338027825-27] INFO fhirtest.access [LoggingInterceptor.java:175] Path[/fhir] Source[] Operation[update SearchParameter/2] UA[PostmanRuntime/7.26.8] Params[] ResponseEncoding[JSON] Operation[update SearchParameter/2] UA[PostmanRuntime/7.26.8] Params[] ResponseEncoding[JSON]
2021-03-12 00:15:24.580 [hapi-fhir-jpa-scheduler-clustered-4] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:309] Running 3 reindex jobs: [ResourceReindexJobEntity[id=111,resourceType=Practitioner,thresholdLow=<null>,thresholdHigh=2021-03-12 00:19:55.337], ResourceReindexJobEntity[id=112,resourceType=StructureDefinition,thresholdLow=<null>,thresholdHigh=2021-03-12 00:19:55.348], ResourceReindexJobEntity[id=110,resourceType=<null>,thresholdLow=2021-03-12 00:10:52.202,thresholdHigh=2021-03-12 00:17:49.748]]
2021-03-12 00:15:24.581 [hapi-fhir-jpa-scheduler-clustered-4] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:359] Performing reindex pass for JOB[111]
2021-03-12 00:15:34.928 [hapi-fhir-jpa-scheduler-clustered-4] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:389] Loaded 2 resources for reindexing in 476ms
2021-03-12 00:15:42.209 [ResourceReindex-10] ERROR c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:579] Failed to index resource Practitioner/1/_history/1: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.validateRequestPartitionNotNull(RequestPartitionHelperSvc.java:285)
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.determineReadPartitionForRequest(RequestPartitionHelperSvc.java:114)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1145)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1131)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.doRead(BaseHapiFhirResourceDao.java:1088)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.lambda$read$9(BaseHapiFhirResourceDao.java:1074)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:65)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:56)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.read(BaseHapiFhirResourceDao.java:1074)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy249.read(Unknown Source)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.lambda$call$0(ResourceReindexingSvcImpl.java:563)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:544)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:519)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-03-12 00:15:42.210 [ResourceReindex-10] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:598] Setting resource PID[1] status to ERRORED
2021-03-12 00:15:42.211 [ResourceReindex-10] INFO c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:467] Marking resource with PID 1 as indexing_failed
2021-03-12 00:15:44.974 [ResourceReindex-10] ERROR c.u.f.j.s.r.ResourceReindexingSvcImpl [ResourceReindexingSvcImpl.java:579] Failed to index resource Practitioner/52/_history/1: ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
ca.uhn.fhir.rest.server.exceptions.InternalErrorException: No interceptor provided a value for pointcut: STORAGE_PARTITION_IDENTIFY_READ
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.validateRequestPartitionNotNull(RequestPartitionHelperSvc.java:285)
at ca.uhn.fhir.jpa.partition.RequestPartitionHelperSvc.determineReadPartitionForRequest(RequestPartitionHelperSvc.java:114)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1145)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.readEntity(BaseHapiFhirResourceDao.java:1131)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.doRead(BaseHapiFhirResourceDao.java:1088)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.lambda$read$9(BaseHapiFhirResourceDao.java:1074)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:65)
at ca.uhn.fhir.jpa.dao.tx.HapiTransactionService.execute(HapiTransactionService.java:56)
at ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao.read(BaseHapiFhirResourceDao.java:1074)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy249.read(Unknown Source)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.lambda$call$0(ResourceReindexingSvcImpl.java:563)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:544)
at ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl$ResourceReindexingTask.call(ResourceReindexingSvcImpl.java:519)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)