Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ebulk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ebulk
Commits
9dc48214
Commit
9dc48214
authored
Mar 15, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[1.1.9] Increase version - explicitily close internal files after write
parent
515ababa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ebulk
ebulk
+1
-1
ebulk-data/embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
.../embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
+6
-2
No files found.
ebulk
View file @
9dc48214
...
...
@@ -6,7 +6,7 @@ DOWN_URL="$DEFAULT_DATA_LAKE_URL"
ING_POLICY
=
"portal_ingestion_policies/default_ebulk"
ING_URL
=
"
$DEFAULT_DATA_LAKE_URL$ING_POLICY
"
EBULK_VERSION
=
"1.1.
8
"
EBULK_VERSION
=
"1.1.
9
"
EMBULK_VERSION
=
"0.9.7"
EBULK_DATA_PATH
=
~/.ebulk
EBULK_DATASET_FILE_NAME
=
"/.ebulk_dataset"
...
...
ebulk-data/embulk-wendelin-dataset-tool/lib/embulk/dataset_utils.rb
View file @
9dc48214
...
...
@@ -203,7 +203,9 @@ class DatasetUtils
else
local_files
.
each
do
|
key
,
array
|
record
=
[
key
,
array
[
"status"
],
array
[
"size"
].
to_s
,
array
[
"hash"
],
array
[
"modification_date"
],
array
[
"large_hash"
]].
join
(
RECORD_SEPARATOR
)
File
.
open
(
@temp_report_file
,
'ab'
)
{
|
file
|
file
.
puts
(
record
)
}
file
=
File
.
open
(
@temp_report_file
,
"ab"
)
file
.
puts
(
record
)
file
.
close
()
end
end
FileUtils
.
cp_r
(
@temp_report_file
,
@task_report_file
,
:remove_destination
=>
true
)
...
...
@@ -224,7 +226,9 @@ class DatasetUtils
File
.
delete
(
@resume_operation_file
)
end
record
=
new_reference
?
[
operation
,
reference
,
new_reference
].
join
(
RECORD_SEPARATOR
)
:
[
operation
,
reference
].
join
(
RECORD_SEPARATOR
)
File
.
open
(
@resume_operation_file
,
'w'
)
{
|
file
|
file
.
puts
(
record
)
}
file
=
File
.
open
(
@resume_operation_file
,
"w"
)
file
.
puts
(
record
)
file
.
close
()
end
def
getConfiguration
(
action
,
tool_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment