core icon indicating copy to clipboard operation
core copied to clipboard

Reindex is not working when you manually update the number of replicas

Open shaydotcms opened this issue 10 years ago • 2 comments

When set the property AUTOWIREMANAGEES_REPLICAS=false and run a reindex, the reindexation process is not completed and there’s no errors in the logs.

Steps to reproduce:

  1. Modify the file dotcms-config-cluster.properties located in .../tomcat8/webapps/ROOT/WEB-INF/classes
  2. Uncomment and set AUTOWIREMANAGEES_REPLICAS=false
  3. Save the file
  4. Startup dotcms instance
  5. Login to dotcms
  6. Navigate to System> Maintenance> Index
  7. Right Click over the existing indexes and click Update Number of Replicas on each index (i.e.: number of replicas = 2)
f405f1fa-222c-45b3-bbd3-7021c0c539a5
  1. Click Reindex button
  2. Result: the reindexation process is not completed and there’s no errors in the logs

Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jun 23 '16 20:06 shaydotcms

Check if this works in 3.5 and it is a problem caused by 3.6 changes

dsilvam avatar Jul 07 '16 16:07 dsilvam

Passed QA. Reindexation process is completed and number of replicas is now updated accordingly. Transactions are logged in dotcms.log

image

master-3.6 // Win7 Pro SP1 // SQLServer 2012 // Chrome master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox v45.0.1

shaydotcms avatar Jul 25 '16 14:07 shaydotcms