Closed jreadey closed 7 months ago
@jreadey hope I'm not invading here, but did you mean the opposite condition here? https://github.com/HDFGroup/hsds/blob/c87fa68392644f5530761ceab1a855782e87b3f0/hsds/util/fileClient.py#L356 As I understand, currently it sleeps after each file, except for 1000th, but I guess the idea was to sleep only each 1000th file.
I second @assaron's observation. Other than that, LGTM.
Yes, silly mistake!
Sorry, I didn't specify, but there is second place with that problem as well: https://github.com/HDFGroup/hsds/blob/398df2752ed8db26bc99af827347d54f397474dd/hsds/util/fileClient.py#L370
I'm consistent at least...
Break up list_keys in fileClient with some asyncio.sleep()'s so that other tasks have a chance to run (c.f. issue #332). Also, reduce log verbosity.