public static void returnCompressor(Compressor compressor) {
    if (compressor == null) {
      return;
    }
    // if the compressor can't be reused, don't pool it.
    if (compressor.getClass().isAnnotationPresent(DoNotPool.class)) {
      compressor.end();
      return;
    }
    compressor.reset();
    if (payback(COMPRESSOR_POOL, compressor)) {
      updateLeaseCount(compressorCounts, compressor, -1);
    }
  }
Return the {@link Compressor} to the pool. Copied from hadoop-common without significant
modification.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/CodecPool.java