Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
64432f4f
Commit
64432f4f
authored
Oct 10, 2025
by
Tobias Koppers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more logging
parent
fc3917b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
kv_backing_storage.rs
...pack/crates/turbo-tasks-backend/src/kv_backing_storage.rs
+13
-3
No files found.
turbopack/crates/turbo-tasks-backend/src/kv_backing_storage.rs
View file @
64432f4f
...
@@ -360,7 +360,10 @@ impl<T: KeyValueDatabase + Send + Sync + 'static> BackingStorageSealed
...
@@ -360,7 +360,10 @@ impl<T: KeyValueDatabase + Send + Sync + 'static> BackingStorageSealed
let
task_id
:
u32
=
*
task_id
;
let
task_id
:
u32
=
*
task_id
;
serialize_task_type
(
&
task_type
,
&
mut
task_type_bytes
,
task_id
)
?
;
serialize_task_type
(
&
task_type
,
&
mut
task_type_bytes
,
task_id
)
?
;
if
task_type
.get_name
()
.contains
(
"with_modules"
)
{
if
task_type
.get_name
()
.contains
(
"with_modules"
)
{
println!
(
"Stored task type: {task_type:?} => {task_id}"
);
println!
(
"Stored task type: {task_type:?} => {task_id}
\
({task_type_bytes:?})"
);
}
}
batch
batch
...
@@ -508,13 +511,20 @@ impl<T: KeyValueDatabase + Send + Sync + 'static> BackingStorageSealed
...
@@ -508,13 +511,20 @@ impl<T: KeyValueDatabase + Send + Sync + 'static> BackingStorageSealed
success
=
tracing
::
field
::
Empty
success
=
tracing
::
field
::
Empty
)
)
.entered
();
.entered
();
let
task_type
=
POT_CONFIG
.serialize
(
task_type
)
?
;
let
task_type_bytes
=
POT_CONFIG
.serialize
(
task_type
)
?
;
let
Some
(
bytes
)
=
database
.get
(
tx
,
KeySpace
::
ForwardTaskCache
,
&
task_type
)
?
else
{
let
result
=
database
.get
(
tx
,
KeySpace
::
ForwardTaskCache
,
&
task_type_bytes
)
?
;
let
Some
(
bytes
)
=
result
else
{
if
task_type
.get_name
()
.contains
(
"with_modules"
)
{
println!
(
"Restored task type: {task_type:?} => None ({task_type_bytes:?})"
);
}
span
.record
(
"success"
,
false
);
span
.record
(
"success"
,
false
);
return
Ok
(
None
);
return
Ok
(
None
);
};
};
let
bytes
=
bytes
.borrow
()
.try_into
()
?
;
let
bytes
=
bytes
.borrow
()
.try_into
()
?
;
let
id
=
TaskId
::
try_from
(
u32
::
from_le_bytes
(
bytes
))
.unwrap
();
let
id
=
TaskId
::
try_from
(
u32
::
from_le_bytes
(
bytes
))
.unwrap
();
if
task_type
.get_name
()
.contains
(
"with_modules"
)
{
println!
(
"Restored task type: {task_type:?} => {id} ({task_type_bytes:?})"
);
}
span
.record
(
"success"
,
*
id
);
span
.record
(
"success"
,
*
id
);
Ok
(
Some
(
id
))
Ok
(
Some
(
id
))
}
}
...
...
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