[GH-ISSUE #206] Compile Error #126

Closed
opened 2026-10-26 09:45:35 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @zk-kiger on GitHub (Mar 25, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/206

error[E0282]: type annotations needed
--> src/storage/chunk_engine/src/core/engine.rs:664:63
|
664 | if write_batch.size_in_bytes() >= BATCH_SIZE.0 as _ {
| ^ cannot infer type
For more information about this error, try rustc --explain E0282.
warning: chunk_engine (lib) generated 2 warnings
error: could not compile chunk_engine (lib) due to 1 previous error; 2 warnings emitted
gmake[2]: *** [CMakeFiles/cargo_build_all.dir/build.make:70: CMakeFiles/cargo_build_all] Error 101
gmake[1]: *** [CMakeFiles/Makefile2:1977: CMakeFiles/cargo_build_all.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

if write_batch.size_in_bytes() >= BATCH_SIZE.0 as usize {
                self.meta_store.write(write_batch, true)?;
                write_batch = RocksDB::new_write_batch();
            }

modify _ to usize, compile pass.

Originally created by @zk-kiger on GitHub (Mar 25, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/206 error[E0282]: type annotations needed --> src/storage/chunk_engine/src/core/engine.rs:664:63 | 664 | if write_batch.size_in_bytes() >= BATCH_SIZE.0 as _ { | ^ cannot infer type For more information about this error, try `rustc --explain E0282`. warning: `chunk_engine` (lib) generated 2 warnings error: could not compile `chunk_engine` (lib) due to 1 previous error; 2 warnings emitted gmake[2]: *** [CMakeFiles/cargo_build_all.dir/build.make:70: CMakeFiles/cargo_build_all] Error 101 gmake[1]: *** [CMakeFiles/Makefile2:1977: CMakeFiles/cargo_build_all.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... ``` if write_batch.size_in_bytes() >= BATCH_SIZE.0 as usize { self.meta_store.write(write_batch, true)?; write_batch = RocksDB::new_write_batch(); } ``` modify _ to usize, compile pass.
Author
Owner

@zk-kiger commented on GitHub (Mar 25, 2025):

rustc --version
rustc 1.85.0 (4d91de4e4 2025-02-17)

<!-- gh-comment-id:2750229095 --> @zk-kiger commented on GitHub (Mar 25, 2025): rustc --version rustc 1.85.0 (4d91de4e4 2025-02-17)
Author
Owner

@SF-Zhou commented on GitHub (Mar 30, 2025):

In our own compilation environment, this issue does not occur. However, I will address this potential problem according to your suggested fix.

<!-- gh-comment-id:2764405579 --> @SF-Zhou commented on GitHub (Mar 30, 2025): In our own compilation environment, this issue does not occur. However, I will address this potential problem according to your suggested fix.
Author
Owner

@Navacore commented on GitHub (Apr 20, 2025):

I don't know what they're accusing me of, please stop sending messages.

El dom, 30 de mar. de 2025 2:14 a. m., SF-Zhou @.***>
escribió:

Closed #206 https://github.com/deepseek-ai/3FS/issues/206 as completed
via dfadd59
https://github.com/deepseek-ai/3FS/commit/dfadd59868954fe016affc6bfac506864077026c
.

—
Reply to this email directly, view it on GitHub
https://github.com/deepseek-ai/3FS/issues/206#event-17047089760, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BQ43KJMRFEKCQRCKENKY5TL2W6DUXAVCNFSM6AAAAABZWXUP36VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGA2DOMBYHE3TMMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:2817383779 --> @Navacore commented on GitHub (Apr 20, 2025): I don't know what they're accusing me of, please stop sending messages. El dom, 30 de mar. de 2025 2:14 a. m., SF-Zhou ***@***.***> escribió: > Closed #206 <https://github.com/deepseek-ai/3FS/issues/206> as completed > via dfadd59 > <https://github.com/deepseek-ai/3FS/commit/dfadd59868954fe016affc6bfac506864077026c> > . > > — > Reply to this email directly, view it on GitHub > <https://github.com/deepseek-ai/3FS/issues/206#event-17047089760>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/BQ43KJMRFEKCQRCKENKY5TL2W6DUXAVCNFSM6AAAAABZWXUP36VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGA2DOMBYHE3TMMA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#126
No description provided.