# The butler incorrectly caches dataTypes such as calexp_sub

XMLWordPrintable

## Details

• Type: Story
• Status: Invalid
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Team:
Data Access and Database

## Description

The butler appears to incorrectly cache images retrieved using a _sub variant – if a different BoundingBox is specified the old version is used. For example,

 exp1 = butler.get('calexp_sub', dataId, bbox=bbox1) exp2 = butler.get('calexp_sub', dataId, bbox=bbox2) 

return an identical portion of the image, even if bbox1 != bbox2.

Discussion on slack revealed that the bbox is part of the dataId, but only the part used to look up the data is used when caching.

## Activity

Hide
John Swinbank added a comment -

Setting team to DAX and paging Fritz Mueller.

Show
John Swinbank added a comment - Setting team to DAX and paging Fritz Mueller .
Hide
John Swinbank added a comment -

Am I correct in assuming this is rendered obsolete by DM-10558? (Nate Pease?)

Show
John Swinbank added a comment - Am I correct in assuming this is rendered obsolete by DM-10558 ? ( Nate Pease ?)
Hide
Nate Pease added a comment -

John Swinbank that's right. I added a "duplicates" link to this ticket.

How should this story be closed? I don't know if I should make it "won't fix" or "done" (or something else).

Show
Nate Pease added a comment - John Swinbank that's right. I added a "duplicates" link to this ticket. How should this story be closed? I don't know if I should make it "won't fix" or "done" (or something else).
Hide
John Swinbank added a comment -

Thanks Nate. The answer is "invalid" — I'll take care of it.

Show
John Swinbank added a comment - Thanks Nate. The answer is "invalid" — I'll take care of it.
Hide
John Swinbank added a comment -
Show
John Swinbank added a comment - ( https://developer.lsst.io/processes/workflow.html#ticket-status )
Hide
Nate Pease added a comment -

thanks John!

Show
Nate Pease added a comment - thanks John!

## People

• Assignee:
Unassigned
Reporter:
Robert Lupton
Watchers:
John Swinbank, Nate Pease, Robert Lupton