Hi jess,
I Have been checking the api flow for a list action over base entry objects… I have record in a file the log of two actions. One return 402 results and the other 0 results. Comparing the log… I have noticed some features that might help me to solve the problem.
- The main query over the database is the select over the entry table. I am going to paste the two queries one in the OK test, and the other in the ERROR test
SELECT entry.ID, entry.KSHOW_ID, entry.KUSER_ID, entry.NAME, entry.TYPE, entry.MEDIA_TYPE, entry.DATA, entry.THUMBNAIL, entry.VIEWS, entry.VOTES, entry.COMMENTS, entry.FAVORITES, entry.TOTAL_RANK, entry.RANK, entry.TAGS, entry.ANONYMOUS, entry.STATUS, entry.SOURCE, entry.SOURCE_ID, entry.SOURCE_LINK, entry.LICENSE_TYPE, entry.CREDIT, entry.LENGTH_IN_MSECS, entry.CREATED_AT, entry.UPDATED_AT, entry.PARTNER_ID, entry.DISPLAY_IN_SEARCH, entry.SUBP_ID, entry.CUSTOM_DATA, entry.SCREEN_NAME, entry.SITE_URL, entry.PERMISSIONS, entry.GROUP_ID, entry.PLAYS, entry.PARTNER_DATA, entry.INT_ID, entry.INDEXED_CUSTOM_DATA_1, entry.DESCRIPTION, entry.MEDIA_DATE, entry.ADMIN_TAGS, entry.MODERATION_STATUS, entry.MODERATION_COUNT, entry.MODIFIED_AT, entry.PUSER_ID, entry.ACCESS_CONTROL_ID, entry.CONVERSION_PROFILE_ID, entry.CATEGORIES, entry.CATEGORIES_IDS, entry.START_DATE, entry.END_DATE, entry.FLAVOR_PARAMS_IDS, entry.AVAILABLE_FROM, entry.LAST_PLAYED_AT FROM entry
WHERE entry.PARTNER_ID=‘110’ AND entry.ID IN (‘0_kvcza1y0’,‘0_elsph34l’,‘0_tp966189’,‘0_wvo6pcqd’,‘0_f09iu2zt’,‘0_05m2vxfn’,‘0_wjs3gr43’,‘0_j97f1zit’,‘0_ovrj82e9’,‘0_wgdsjazn’,‘0_z9bzr5jh’,‘0_bzp75657’,‘0_llrmqp1z’,‘0_ymm43e2y’,‘0_nr2s83of’,‘0_4jstpwb7’) LIMIT 16
SELECT entry.ID, entry.KSHOW_ID, entry.KUSER_ID, entry.NAME, entry.TYPE, entry.MEDIA_TYPE, entry.DATA, entry.THUMBNAIL, entry.VIEWS, entry.VOTES, entry.COMMENTS, entry.FAVORITES, entry.TOTAL_RANK, entry.RANK, entry.TAGS, entry.ANONYMOUS, entry.STATUS, entry.SOURCE, entry.SOURCE_ID, entry.SOURCE_LINK, entry.LICENSE_TYPE, entry.CREDIT, entry.LENGTH_IN_MSECS, entry.CREATED_AT, entry.UPDATED_AT, entry.PARTNER_ID, entry.DISPLAY_IN_SEARCH, entry.SUBP_ID, entry.CUSTOM_DATA, entry.SCREEN_NAME, entry.SITE_URL, entry.PERMISSIONS, entry.GROUP_ID, entry.PLAYS, entry.PARTNER_DATA, entry.INT_ID, entry.INDEXED_CUSTOM_DATA_1, entry.DESCRIPTION, entry.MEDIA_DATE, entry.ADMIN_TAGS, entry.MODERATION_STATUS, entry.MODERATION_COUNT, entry.MODIFIED_AT, entry.PUSER_ID, entry.ACCESS_CONTROL_ID, entry.CONVERSION_PROFILE_ID, entry.CATEGORIES, entry.CATEGORIES_IDS, entry.START_DATE, entry.END_DATE, entry.FLAVOR_PARAMS_IDS, entry.AVAILABLE_FROM, entry.LAST_PLAYED_AT FROM entry
WHERE entry.PARTNER_ID=‘110’ AND 1<>1 LIMIT 16;
The difference is clear!!. in the second query the result is always 0 because the “AND 1<>1” that means that in the logic is not including the array in the query like the first one. So the fist question would be… where is the code to debug this query and why is not filling the array??
- The second Thing I have noticed is this query
SELECT str_entry_id FROM kaltura_entry WHERE partner_id = 110 AND moderation_status not in(1,3) AND type in(1,10118) AND entry_status = 2 AND display_in_search <> -1 AND MATCH(’( @sphinx_match_optimizations P110ST2)’) ORDER BY created_at DESC LIMIT 16 OPTION ranker=none, max_matches=16, comment=‘ip-172-31-3-143[1161679356][sphinx1]’
I could not find this table in any of my database “kaltura,kaltura_sphinx_log,kalturadw,kalturadw_bisources,kalturadw_ds,kalturalog”. Maybe in the upgrade my database is not upgraded because I have an RDS aws and I have to do manually… Therefore I thought that the upgrading in the database would be achieve in the front upgrading, it means, when you update the fron NODE automatically creates the new tables or fields in the database… is that true??
-
On the other hand I have noticed happens in the Index node… There is a file /opt/kaltura/log/kaltura_populate.log which is increasing and increasing without stop… That is maybe becuase my index process is stuck in something
-
And the last Thing I have noticed in the index is… in the file /opt/kaltura/log/sphinx/kaltura_sphinx_query.log the file is always increasing too… with this query.
SELECT str_entry_id , ((end_date >= 1520500190) OR (end_date = 0)) as cnd0 FROM kaltura_entry WHERE MATCH(’( @(name,tags,description,entry_id,reference_id,roots,puser_id,user_names) esports ) ( ( @sphinx_match_optimizations P110ST2) )’) AND partner_id IN (0,110) AND partner_id=110 AND moderation_status IN (1,2,5,6) AND moderation_status NOT IN (1,3) AND int_entry_id!=1740526941 AND start_date<=1520500190 AND entry_status IN (1,2) AND entry_status!=3 AND entry_status=2 AND display_in_search!=-1 AND type IN (1,7,10118) AND type IN (1,2,7,10118) AND cnd0>0 LIMIT 0,12 OPTION max_matches=12, comment=’‘ip-172-31-3-143[1417300880][sphinx1]’’
Again the table kaltura_entry
Those are the things that I have seen… Please give me more advices to check.
Thanks for all your time