core icon indicating copy to clipboard operation
core copied to clipboard

Inconsistent content indexing

Open brentgriffin opened this issue 13 years ago • 17 comments

Customer has experienced inconsistent indexing of content for a department structure they created. Customer is running version 2.3.2 of dotCMS on a Tomcat cluster with an Oracle DB. I have recreated locally by recreating his structure and importing his data for this structure. It was recreated locally running version 2.3.2 of dotCMS on a non-clustered Tomcat with a PostgreSQL DB. The enterprise issue is located here: http://jira.dotmarketing.net/browse/EE-5516

After I imported the data all 10 pieces of department content showed on content search page. But as soon as I did a full re-index, only 4 of the departments showed. I reindexed multiple times and the working and live indexes varied in size and the number of departments that were visible varied between 4,5, and 10. No other changes were happening in the system.

As per the customers workaround, I turned off "User Searchable" and "System Indexed" on the Price Range field. All 10 departments show and I reindexed 12 times and the indexes were consistent in size and all 10 departments showed on the content search screen.

Given the nature of this issue, I wanted further verification so I rechecked the "User Searchable" and "System Indexed" options on the Price Range Field, ran multiple reindexes and the index sizes varied with 4, 5, or 10 departments showing on the content search screen.

Here is the makeup of the department structure (every field that is "Indexed" is both "User Searchable" and "System Indexed"): deptstructure

Here are the contents to be imported via csv file: http://paste-dotcms.appspot.com/view/ag5zfnBhc3RlLWRvdGNtc3INCxIFUGFzdGUYkcsBDA

brentgriffin avatar Jul 29 '13 21:07 brentgriffin

Are there any visible errors in the log on reindexing?


Will Ezell http://dotcms.com phone: (305) 900-2001 ext. 7010 direct: (978) 294-9429 https://www.google.com/voice/b/0?pli=1#phones skype: wezell1

On Mon, Jul 29, 2013 at 5:50 PM, Brent Griffin [email protected]:

Customer has experienced inconsistent indexing of content for a department structure they created. Customer is running version 2.3.2 of dotCMS on a Weblogic cluster with an Oracle DB. I have recreated locally by recreating his structure and importing his data for this structure. It was recreated locally running version 2.3.2 of dotCMS on a non-clustered Tomcat with a PostgreSQL DB. The enterprise issue is located here: http://jira.dotmarketing.net/browse/EE-5516

After I imported the data all 10 pieces of department content showed on content search page. But as soon as I did a full re-index, only 4 of the departments showed. I reindexed multiple times and the working and live indexes varied in size and the number of departments that were visible varied between 4,5, and 10. No other changes were happening in the system.

As per the customers workaround, I turned off "User Searchable" and "System Indexed" on the Price Range field. All 10 departments show and I reindexed 12 times and the indexes were consistent in size and all 10 departments showed on the content search screen.

Given the nature of this issue, I wanted further verification so I rechecked the "User Searchable" and "System Indexed" options on the Price Range Field, ran multiple reindexes and the index sizes varied with 4, 5, or 10 departments showing on the content search screen.

Here is the makeup of the department structure (every field that is "Indexed" is both "User Searchable" and "System Indexed"): [image: deptstructure]https://f.cloud.github.com/assets/3208956/874969/c39f1d84-f896-11e2-828b-b96104f56f9f.png

Here are the contents to be imported via csv file: Identifier,languageCode,countryCode,Name,Description,URL Slug,Category Variable Name,Catalog Key,Product Category IDs,Merchant IDs,Merchant Type IDs,Price Range ,en,US,Latest Deals,,latest-deals,departmentLatestDeals,,,,, ,en,US,Dining,,dining,departmentDining,,,,,

,en,US,Electronics,,electronics,departmentElectronics,cm0oivonkp7lsa3zpwwwei89x,7000,,"11,10,67,49,63",50-10000

,en,US,Beauty,,beauty,departmentBeauty,cm0oivonkp7lsa3zpwwwei89x,13000,,"40,47",10-50 ,en,US,Men's Clothing,,mens-clothing,departmentMensClothing,cm0oivonkp7lsa3zpwwwei89x,3001,,"26,47",25-100 ,en,US,Gifts & Flowers,,gifts-flowers,departmentGiftsFlowers,cm0oivonkp7lsa3zpwwwei89x,12000,,"47,3,37,53,69,66",10-50

,en,US,Entertainment,,entertainment,departmentEntertainment,cm0oivonkp7lsa3zpwwwei89x,21000,,1,25-100 ,en,US,Women's Clothing,,womens-clothing,departmentWomensClothing,cm0oivonkp7lsa3zpwwwei89x,3300,,"26,47",25-100 ,en,US,Home & Garden,,home-garden,departmentHomeGarden,cm0oivonkp7lsa3zpwwwei89x,16000,,33,25-100

,en,US,Travel,,travel,departmentTravel,cm0oivonkp7lsa3zpwwwei89x,32345,,16,100-4000

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/3509 .

dotcmsCodeReview avatar Jul 29 '13 21:07 dotcmsCodeReview

No, I should have mentioned - no error messages in dotcms.log or catalina.out

Also, indexes were created locally with 1 shard and 0 replicas.

Brent

brentgriffin avatar Jul 29 '13 22:07 brentgriffin

I would like to work on this (if @jtesser don't mind) :)

dotjorgeu avatar Jul 29 '13 22:07 dotjorgeu

Glad you were able to reproduce this. I would have preferred the department structure data not have been made public via GitHub as it contains a key specific to our use of a commercial API. Not a horrible thing mind you, but not ideal to have exposed.

signed8bit avatar Jul 29 '13 22:07 signed8bit

edited the task. it isn't public anymore.

dotjorgeu avatar Jul 29 '13 22:07 dotjorgeu

@dotjorgeu Thanks!

signed8bit avatar Jul 29 '13 22:07 signed8bit

@signed8bit - sorry about that - did not realize this contained proprietary information.

My bad, Brent

brentgriffin avatar Jul 30 '13 00:07 brentgriffin

Got new log

2013-07-30 12:18:31,738 WARN  com.dotmarketing.common.reindex.ReindexThread$1 - failure in bulk execution:
[24]: index [working_20130730121818], type [content], id [acac698b-9de6-46e4-af88-4955da0e4bfe_1], message [MapperParsingException[Failed to parse [department.pricerange]]; nested: MapperParsingException[failed to parse date field [], tried both date format [dateOptionalTime], and timestamp number]; nested: IllegalArgumentException[Invalid format: ""]; ]

interesting

dotjorgeu avatar Jul 30 '13 16:07 dotjorgeu

merged to master and master-2.5 Long standing odd indexing issue solved

jtesser avatar Jul 30 '13 18:07 jtesser

Yay! :clap:

signed8bit avatar Jul 30 '13 18:07 signed8bit

@signed8bit we need to test more but you can just move the config change over via a plugin and test. Use the ROOT dir of the plugin to replace the file.

jtesser avatar Jul 30 '13 18:07 jtesser

Sounds good. I will get this into our hotfixes plugin this week and let you know how it goes for us.

signed8bit avatar Jul 30 '13 18:07 signed8bit

In some initial testing I am still seeing content fields with date-like values attempt to get parsed as dates.

failure in bulk execution: [0]: index [working_20130731093842], type [content], id [49267d15-2573-4b3a-8366-15ac92dc3786_1], message [MapperParsingException[Failed to parse [department.pricerange]]; nested: MapperParsingException[failed to parse date field [], tried both date format [dateOptionalTime], and timestamp number]; nested: IllegalArgumentException[Invalid format: ""]; ]

I've applied the corrected files and so expected the "date_detection" : false," to alleviate this. Not so?

signed8bit avatar Jul 31 '13 15:07 signed8bit

We are not getting it. Can you reproduce on the current demo? or checkout master-2.5

jtesser avatar Jul 31 '13 15:07 jtesser

False alarm. I had a previously bad index and it wasn't working until I cleared ran a reindex. It is looking good here now. Thanks!

signed8bit avatar Jul 31 '13 21:07 signed8bit

great to heard. I was clueless after your comment

dotjorgeu avatar Jul 31 '13 21:07 dotjorgeu

Fixed, this is working fine rigth now

bryanboza avatar Sep 26 '13 22:09 bryanboza