Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
3db721d6
Commit
3db721d6
authored
Jan 27, 2023
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes in decompression error handling
parent
c474996e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ccs/decompression.py
+7
-6
7 additions, 6 deletions
Ccs/decompression.py
with
7 additions
and
6 deletions
Ccs/decompression.py
+
7
−
6
View file @
3db721d6
...
...
@@ -81,7 +81,6 @@ def ce_decompress(outdir, pool_name=None, sdu=None, starttime=None, endtime=None
decomp
=
CeDecompress
(
outdir
,
pool_name
=
pool_name
,
sdu
=
sdu
,
starttime
=
starttime
,
endtime
=
endtime
,
startidx
=
startidx
,
endidx
=
endidx
,
ce_exec
=
ce_exec
)
decomp
.
start
()
ce_decompressors
[
decomp
.
init_time
]
=
decomp
def
ce_decompress_stop
(
name
=
None
):
...
...
@@ -125,6 +124,9 @@ class CeDecompress:
self
.
ce_collect_timeout
=
CE_COLLECT_TIMEOUT
self
.
ldt_minimum_ce_gap
=
LDT_MINIMUM_CE_GAP
global
ce_decompressors
ce_decompressors
[
self
.
init_time
]
=
self
def
_ce_decompress
(
self
):
checkdir
=
os
.
path
.
dirname
(
self
.
outdir
)
if
not
os
.
path
.
exists
(
checkdir
)
and
checkdir
!=
""
:
...
...
@@ -161,13 +163,12 @@ class CeDecompress:
filedict
=
cfl
.
dump_large_data
(
pool_name
=
self
.
pool_name
,
starttime
=
self
.
last_ce_time
,
endtime
=
self
.
endtime
,
outdir
=
self
.
outdir
,
dump_all
=
True
,
sdu
=
self
.
sdu
,
startidx
=
self
.
startidx
,
endidx
=
self
.
endidx
)
except
ValueError
as
err
:
ce_decompressors
.
pop
(
self
.
init_time
)
raise
err
for
ce
in
filedict
:
self
.
last_ce_time
=
ce
decompress
(
filedict
[
ce
])
except
(
ValueError
,
TypeError
,
AttributeError
)
as
err
:
ce_decompressors
.
pop
(
self
.
init_time
)
raise
err
while
self
.
ce_decompression_on
:
filedict
=
cfl
.
dump_large_data
(
pool_name
=
self
.
pool_name
,
starttime
=
self
.
last_ce_time
,
endtime
=
self
.
endtime
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment