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

Protobuf server operation handlers do not check for low-memory conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.5.0
    • client/server
    • None

    Description

      The new Protobuf-based client/server operation handlers are not checking to see if memory is low. For instance, the Java client does this check in handling function execution requests:

              HeapMemoryMonitor hmm =
                  ((InternalResourceManager) cache.getResourceManager()).getHeapMonitor();
              if (functionObject.optimizeForWrite() && cache != null && hmm.getState().isCritical()
                  && !MemoryThresholds.isLowMemoryExceptionDisabled()) {
                Set<DistributedMember> sm = Collections.singleton((DistributedMember) cache.getMyId());
                Exception e = new LowMemoryException(
                    LocalizedStrings.ResourceManager_LOW_MEMORY_FOR_0_FUNCEXEC_MEMBERS_1
                        .toLocalizedString(new Object[] {functionObject.getId(), sm}),
                    sm);
      
                sendException(hasResult, clientMessage, e.getMessage(), serverConnection, e);
                return;
              }
      

      Attachments

        Activity

          People

            bbaynes Brian Baynes
            bschuchardt Bruce J Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: