Skip to content

Commit d23b588

Browse files
authored
Fix errors when deleting mapper data (#3018)
1 parent 81686ad commit d23b588

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

mars/services/lifecycle/supervisor/tracker.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ def _incref_chunks(self, chunk_keys: List[str], counts: List[int] = None):
8686
self._chunk_ref_counts[chunk_key] += count
8787

8888
async def incref_chunks(self, chunk_keys: List[str], counts: List[int] = None):
89-
logger.debug(
90-
"Increase reference count for chunks %s",
91-
{ck: self._chunk_ref_counts[ck] for ck in chunk_keys},
92-
)
9389
self._check_ref_counts(chunk_keys, counts)
9490
return await asyncio.to_thread(self._incref_chunks, chunk_keys, counts=counts)
9591

@@ -108,10 +104,6 @@ def _get_remove_chunk_keys(self, chunk_keys: List[str], counts: List[int] = None
108104

109105
async def decref_chunks(self, chunk_keys: List[str], counts: List[int] = None):
110106
self._check_ref_counts(chunk_keys, counts)
111-
logger.debug(
112-
"Decrease reference count for chunks %s",
113-
{ck: self._chunk_ref_counts[ck] for ck in chunk_keys},
114-
)
115107
to_remove_chunk_keys = await asyncio.to_thread(
116108
self._get_remove_chunk_keys, chunk_keys, counts=counts
117109
)

mars/services/storage/api/oscar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async def fetch(
189189
self._session_id, [data_key], level, band_name, remote_address, error
190190
)
191191
if fetch_key:
192-
return fetch_key
192+
return fetch_key[0]
193193

194194
@fetch.batch
195195
async def batch_fetch(self, args_list, kwargs_list):

0 commit comments

Comments
 (0)