Project

General

Profile

Actions

Bug #13106

closed

[SDK] API errors in Python keepclient don't reset cache slot

Added by Peter Amstutz about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release relationship:
Auto

Description

In keepclient.get, a cache slot is reserved when starting a get operation so that multiple gets on the same block don't result in redundant downloads. Unfortunately, the cache slot is not reset if there is an API error (keepstore errors are handled), with the result that the next attempt to read the same block will hang forever.


Subtasks 1 (0 open1 closed)

Task #13107: Review 13106-keepclient-slotResolvedPeter Amstutz02/20/2018Actions
Actions #1

Updated by Peter Amstutz about 6 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Peter Amstutz about 6 years ago

  • Description updated (diff)
Actions #4

Updated by Peter Amstutz about 6 years ago

  • Assigned To set to Peter Amstutz
Actions #5

Updated by Lucas Di Pentima about 6 years ago

LGTM.

Just one question: Do you think it would be convenient to add a comment on the test pointing to the bug so that’s more clear as to why there are 2 asserts on the same operation?

Actions #6

Updated by Peter Amstutz about 6 years ago

Lucas Di Pentima wrote:

LGTM.

Just one question: Do you think it would be convenient to add a comment on the test pointing to the bug so that’s more clear as to why there are 2 asserts on the same operation?

Yes, that's a good idea.

Actions #7

Updated by Anonymous about 6 years ago

  • Status changed from In Progress to Resolved
Actions #9

Updated by Tom Morris over 5 years ago

  • Release set to 17
Actions

Also available in: Atom PDF