Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: colinmarc/hdfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.1
Choose a base ref
...
head repository: colinmarc/hdfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.3.0
Choose a head ref
  • 13 commits
  • 25 files changed
  • 2 contributors

Commits on Feb 5, 2022

  1. Configuration menu
    Copy the full SHA
    5298db4 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. When seeking forward small amounts, don't reconnect

    Currently, when seeking, we always discard the BlockReader and reconnect at the
    new offset. This is often wasteful, but especially when seeking forward would
    keep us in the same chunk, since on reconnecting we discard the beginning of the
    chunk anyway.
    
    This adds a new method to BlockReader, Skip, which attempts to discard bytes in
    order to skip forward, and makes use of that for small (<64k) forward seeks.
    colinmarc committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    11bad6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b02ab58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce22ebc View commit details
    Browse the repository at this point in the history
  4. Fix the tests badge

    colinmarc committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    1f6a380 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    039ab59 View commit details
    Browse the repository at this point in the history
  6. Prevent an NPE in hdfs get

    Fixes #244.
    colinmarc committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    fa9b371 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2022

  1. Configuration menu
    Copy the full SHA
    aea93fd View commit details
    Browse the repository at this point in the history
  2. Return a specific error if a file is still incomplete after FileWrite…

    …r.Close
    
    Previously, we would simply ignore the result field on CompleteResponse, which
    lead to a silently hanging lease on the file. A hanging lease isn't that bad -
    it expires on its own - but it was causing the sneaky
    AlreadyBeingCreatedExceptions we were seeing in append tests.
    
    Exposing the error (and adding a function IsErrReplicating to unwrap the
    PathError, for convenience) allows the client to either ignore it, and let the
    lease expire on its own, or to retry in a loop, as the java client does, until
    the file is complete and the lease is destroyed.
    
    This has the potential to be a breaking change, since we would silently swallow
    the error before.
    colinmarc committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    50243c4 View commit details
    Browse the repository at this point in the history
  3. Add support for truncate operations

    Fixes #73.
    junjieqian authored and colinmarc committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    2f11406 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81c61d6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3faa96d View commit details
    Browse the repository at this point in the history
  6. Usermod requires sudo

    colinmarc committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    36a28bc View commit details
    Browse the repository at this point in the history
Loading