daledotshan/liferay-portal — pull request #105 by yuhai (2014-09-25 03:54:21+00:00)
Title: LPS-50322  Announcement Portlet Notification Emails not working for new sharded instance

The issue only occured in shard environment.
AnnouncementsEntryLocalServiceImpl.checkEntries() method only takes effect in default shard database and it can't get data from second instance database. That is to say, the below code fragment is still null:

List entries =
announcementsEntryFinder.findByDisplayDate(now, _previousCheckDate);

#entries is null (it can't search in second instance database)

The fix refer to com.liferay.portlet.admin.action.EditServerAction.reindex() method from 434 lines to 451 lines.

Please help check the fix.

Thanks,
Hai