You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zsxwing <gi...@git.apache.org> on 2017/07/13 05:36:07 UTC

[GitHub] spark pull request #18388: [SPARK-21175][WIP] Reject OpenBlocks when memory ...

Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18388#discussion_r127131671
  
    --- Diff: common/network-common/src/main/java/org/apache/spark/network/util/PooledByteBufAllocatorWithMetrics.java ---
    @@ -0,0 +1,70 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.network.util;
    +
    +import java.util.Iterator;
    +import java.util.List;
    +
    +import io.netty.buffer.PoolArenaMetric;
    +import io.netty.buffer.PoolChunkListMetric;
    +import io.netty.buffer.PoolChunkMetric;
    +import io.netty.buffer.PooledByteBufAllocator;
    +
    +/**
    + * A {@link PooledByteBufAllocator} providing some metrics.
    + */
    +public class PooledByteBufAllocatorWithMetrics extends PooledByteBufAllocator {
    --- End diff --
    
    Instead of adding this class, can we upgrade to Netty 4.0.45.Final which allows us to use metrics APIs? (See https://github.com/netty/netty/pull/6460)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org