Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9109

The local filter (CQ/Interest) computation code seems to be not needed

    XMLWordPrintableJSON

Details

    Description

      In TxCallbackEventFactoryImpl.createCallbackEvent() there is logic which looks to see if filters (CQ/Interests) needs to be computed after receiving the TX commit message from remote. Since with GEODE-8926 the computation for remote nodes happen in primary only the logic here looks like unnecessary.

      boolean computeFilterInfo = false;
            if (filterRoutingInfo != null) {
              localRouting = filterRoutingInfo.getLocalFilterInfo();
              if (localRouting != null) {
                // routing was computed in this VM but may need to perform local interest processing
                computeFilterInfo = !filterRoutingInfo.hasLocalInterestBeenComputed()
                    && !localRouting.filterProcessedLocally;
              } else {
                // routing was computed elsewhere and is in the "remote" routing table
                localRouting = filterRoutingInfo.getFilterInfo(internalRegion.getMyId());
              }
              if (localRouting != null) {
                if (!computeFilterInfo) {
                  retVal.setLocalFilterInfo(localRouting);
                }
              }
            }
      
      

      Check with computeFilterInfo.

      Attachments

        Issue Links

          Activity

            People

              eshu Eric Shu
              agingade Anilkumar Gingade
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: