Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c80bc96
Various bug fixes. (#243)
akharit Oct 4, 2018
b7afbb7
Readinto method (#246)
akharit Oct 15, 2018
0e358c9
Concat should send source files in json (#248)
akharit Oct 15, 2018
d4413c9
Updated version number and history.rst
akharit Oct 15, 2018
6fe38d6
Merge branch 'dev' of https://github.com/Azure/azure-data-lake-store-…
akharit Oct 15, 2018
5a062e4
Merge from master
akharit Oct 15, 2018
cc8f446
Updated version number
akharit Oct 15, 2018
12e375c
Fix
akharit Oct 16, 2018
dc7d053
Merge conflicts
akharit Oct 16, 2018
aff7d1a
Retry for authentication(getting tokens) (#251)
akharit Oct 29, 2018
8f77ce1
Test recordings update (#250)
akharit Oct 30, 2018
2b22d8c
Fix merge
akharit Oct 30, 2018
2641a9a
Updated history.rst and version number
akharit Oct 30, 2018
34e415d
Sync with master
akharit Nov 6, 2018
96c064b
Sync with master
akharit Nov 6, 2018
2628e49
Recursive ACL functions (#247)
akharit Nov 9, 2018
37dca16
Add filesessionid to get_chunk (#258)
akharit Nov 13, 2018
c5fabd9
Updated version and history
akharit Nov 13, 2018
ee498cd
Merge branch 'master' into dev
akharit Nov 13, 2018
d4d9de8
Merge branch 'master' into dev
akharit Nov 14, 2018
fd12abf
Fix for Chunked Decoding exception thrown while reading response.cont…
akharit Nov 15, 2018
eb585b4
Updated history.rst and version
akharit Nov 15, 2018
3e8177e
Fixe for issue #266, #265 and refactoring (#268)
akharit Jan 4, 2019
30eba63
Update version numbers
akharit Jan 8, 2019
7b98c36
Merge from master
akharit Jan 8, 2019
e6e8190
Replace content summary api call with user side processing
akharit Jan 31, 2019
69b16c7
Move token check under retry
akharit Jan 31, 2019
72eef8a
Merge branch 'master' into dev
akharit Jan 31, 2019
99478a0
Bump version number
akharit Jan 31, 2019
45f5342
Raise exception on repeated zero reads
akharit Feb 1, 2019
05e33de
Expose timeout for AdlDownloader and AdlUploader
akharit Feb 1, 2019
1f988f8
Updated History.rst
akharit Feb 1, 2019
c61762f
Update api-version to 2018-09-01
akharit Feb 1, 2019
15f6c51
Updated test recordings
akharit Feb 1, 2019
76ed6e0
Reverted version change back
akharit Feb 1, 2019
637c494
fix test
akharit Feb 1, 2019
1751782
Refactor walk
akharit Feb 1, 2019
ac0c6f8
Address code review
akharit Feb 4, 2019
af3ec17
Remove logger setlevel to Debug
akharit Feb 26, 2019
f688ae0
Updated docstrings (#275)
akharit Feb 26, 2019
f0a732c
Merge branch 'master' into dev
akharit Feb 26, 2019
89dec6a
Merge branch 'dev' of https://github.com/Azure/azure-data-lake-store-…
akharit Feb 26, 2019
b03f44d
Update History and version number
akharit Feb 26, 2019
750235b
Added AzureDLPath to str
akharit Feb 26, 2019
4dad7a3
Fix glob single file bug (#277)
akharit Mar 1, 2019
6fb245a
Update version to 0.0.43
akharit Mar 1, 2019
8fdfac2
Merge from master
akharit Mar 1, 2019
5211d8e
Addressing code review
akharit Mar 2, 2019
1a73c66
Merge branch 'master' into dev
akharit Mar 6, 2019
d56057a
Add continuation token to list status api (#279)
akharit Mar 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.0.44 (2019-03-05)
+++++++++++++++++++
* Add continuation token to LISTSTATUS api call
* Update api-version to 2018-09-01

0.0.43 (2019-03-01)
+++++++++++++++++++
* Fix bug in downloader when glob returns a single file
Expand Down
2 changes: 1 addition & 1 deletion azure/datalake/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# license information.
# --------------------------------------------------------------------------

__version__ = "0.0.43"
__version__ = "0.0.44"

from .core import AzureDLFileSystem
from .multithread import ADLDownloader
Expand Down
16 changes: 9 additions & 7 deletions azure/datalake/store/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AzureDLFileSystem(object):
url_suffix: str (None)
Domain to send REST requests to. The end-point URL is constructed
using this and the store_name. If None, use default.
api_version: str (2018-05-01)
api_version: str (2018-09-01)
The API version to target with requests. Changing this value will
change the behavior of the requests, and can cause unexpected behavior or
breaking changes. Changes to this value should be undergone with caution.
Expand Down Expand Up @@ -118,14 +118,16 @@ def _ls_batched(self, path, batch_size=4000):
raise ValueError("Batch size must be strictly greater than 1")
parms = {'listSize': batch_size}
ret = []
data = [None]
continuation_token = "NonEmptyStringSentinel"

while data:
data = self.azure.call('LISTSTATUS', path, **parms)['FileStatuses']['FileStatus']
while continuation_token != "":
ls_call_result = self.azure.call('LISTSTATUS', path, **parms)

data = ls_call_result['FileStatuses']['FileStatus']
ret.extend(data)
if len(data) < batch_size:
break
parms['listAfter'] = ret[-1]['pathSuffix'] # Last path to be used as ListAfter

continuation_token = ls_call_result['FileStatuses']['continuationToken']
parms['listAfter'] = continuation_token # continuationToken to be used as ListAfter

return ret

Expand Down
4 changes: 2 additions & 2 deletions azure/datalake/store/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class DatalakeRESTInterface:
url_suffix: str (None)
Domain to send REST requests to. The end-point URL is constructed
using this and the store_name. If None, use default.
api_version: str (2018-05-01)
api_version: str (2018-09-01)
The API version to target with requests. Changing this value will
change the behavior of the requests, and can cause unexpected behavior or
breaking changes. Changes to this value should be undergone with caution.
Expand Down Expand Up @@ -256,7 +256,7 @@ class DatalakeRESTInterface:
}

def __init__(self, store_name=default_store, token=None,
url_suffix=default_adls_suffix, api_version='2018-05-01', **kwargs):
url_suffix=default_adls_suffix, api_version='2018-09-01', **kwargs):
# in the case where an empty string is passed for the url suffix, it must be replaced with the default.
url_suffix = url_suffix or default_adls_suffix
self.local = threading.local()
Expand Down