hundreds-father-404
09/14/2020, 6:51 PM./pants test
đź‘€ Do we have a technique to see where the hang is happening, like what rule and/or line of Rust codehundreds-breakfast-49010
09/14/2020, 6:55 PMwitty-crayon-22786
09/14/2020, 7:15 PMwitty-crayon-22786
09/14/2020, 7:17 PMhundreds-father-404
09/14/2020, 7:17 PMwitty-crayon-22786
09/14/2020, 7:18 PMhundreds-father-404
09/14/2020, 7:19 PMtop
to see %CPU? I really don’t yet have a good intuition for how to debug something like thiswitty-crayon-22786
09/14/2020, 7:19 PMhundreds-father-404
09/14/2020, 7:20 PMbat
is an awesome rewrite of cat
, and ytop
looks cool too)hundreds-father-404
09/15/2020, 6:49 AMdiff --git a/src/rust/engine/fs/store/src/snapshot_ops.rs b/src/rust/engine/fs/store/src/snapshot_ops.rs
index ad696ae55..092c470a3 100644
--- a/src/rust/engine/fs/store/src/snapshot_ops.rs
+++ b/src/rust/engine/fs/store/src/snapshot_ops.rs
@@ -665,7 +665,8 @@ pub trait SnapshotOps: StoreWrapper + 'static {
prefix: RelativePath,
) -> Result<Digest, SnapshotOpsError> {
let prefix: PathBuf = prefix.into();
- while let Some(parent) = prefix.iter().next_back() {
+ let mut prefix_iter = prefix.iter();
+ while let Some(parent) = prefix_iter.next_back() {
let mut dir_node = remexec::DirectoryNode::new();
dir_node.set_name(osstring_as_utf8(parent.to_os_string())?);
dir_node.set_digest((&digest).into());
witty-crayon-22786
09/15/2020, 4:26 PMhundreds-father-404
09/15/2020, 4:30 PMwitty-crayon-22786
09/15/2020, 4:30 PMhundreds-father-404
09/15/2020, 4:31 PMwitty-crayon-22786
09/15/2020, 4:32 PM