You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by minifirocks <gi...@git.apache.org> on 2017/10/24 03:18:31 UTC

[GitHub] nifi-minifi-cpp pull request #151: MINIFICPP-264: CompressContent Processor

GitHub user minifirocks opened a pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/151

    MINIFICPP-264: CompressContent Processor

    Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
    
    In order to streamline the review of the contribution we ask you
    to ensure the following steps have been taken:
    
    ### For all changes:
    - [ ] Is there a JIRA ticket associated with this PR? Is it referenced
         in the commit message?
    
    - [ ] Does your PR title start with MINIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
    
    - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)?
    
    - [ ] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
    - [ ] If applicable, have you updated the LICENSE file?
    - [ ] If applicable, have you updated the NOTICE file?
    
    ### For documentation related changes:
    - [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
    
    ### Note:
    Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/minifirocks/nifi-minifi-cpp compress_content

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi-minifi-cpp/pull/151.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #151
    
----
commit a2617f78d26e502112106e0fe92395d41c1c303a
Author: Bin Qiu <be...@gmail.com>
Date:   2017-10-24T03:17:01Z

    MINIFICPP-264: CompressContent Processor

----


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    @minifirocks merging now. I'll take care of the conflict when merging since it's a single line change in the readme.


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by minifirocks <gi...@git.apache.org>.
Github user minifirocks commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    implement the compress content, tested with random 100K payload with format gzip, bzip, lzma, xy-lzma. fix the seek issue in stream.


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    @minifirocks  Can you provide some context regarding "the seek issue in stream?" 
    
    I only see that you changed the variable from a uint64_t to a uint32_t. This reduces the file sizes we can seek within. 
    
    "seek issue" implies a bug. What bug was addressed by changing the primitive?


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by minifirocks <gi...@git.apache.org>.
Github user minifirocks commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    @phrocker the basic class is io::BaseStream, the signature is virtual void seek(uint32_t offset) {
    the uint64_t break the virtual inheritance.
    CompressContext test is running on in my local, it fail in travis, will debug more


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by minifirocks <gi...@git.apache.org>.
Github user minifirocks commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    @apiri @phrocker fix the test cast, change size and offset signature to uint6_t, it looks like travis passed. please review


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by phrocker <gi...@git.apache.org>.
Github user phrocker commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    @minifirocks Given that we have a need for files bigger than 4gb, we should change all to uint64_t OR the preferred size_t


---

[GitHub] nifi-minifi-cpp pull request #151: MINIFICPP-264: CompressContent Processor

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/nifi-minifi-cpp/pull/151


---

[GitHub] nifi-minifi-cpp issue #151: MINIFICPP-264: CompressContent Processor

Posted by minifirocks <gi...@git.apache.org>.
Github user minifirocks commented on the issue:

    https://github.com/apache/nifi-minifi-cpp/pull/151
  
    refactor to use lib archive extension.


---