-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: fix batch chunk runtime error #1355
Conversation
@hangvane , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/83345 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1355 +/- ##
==========================================
+ Coverage 61.29% 61.39% +0.09%
==========================================
Files 144 144
Lines 46597 46962 +365
Branches 44133 44498 +365
==========================================
+ Hits 28562 28832 +270
- Misses 16589 16646 +57
- Partials 1446 1484 +38
|
/retest |
@Desiki-high , the test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/83380 |
@Desiki-high , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
/retest |
@hangvane , the test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/83444 |
@hangvane , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
/retest |
@hangvane , the test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/83446 |
0b8c1de
to
62c345e
Compare
@jiangliu Please take a look this again, thanks! |
E2E tests have been added to master, nydus/smoke/tests/native_layer_test.go Lines 43 to 45 in a4ec9b8
and may randomly fail E2E tests. But the logs are expired and cannot be traced. |
@ccx1024cc Please take a look at this again, thanks! |
…fo for batch chunks. 1. `compressed_offset` is used for build-time and runtime sorting for chunk info. So we move `compressed_offset` from `BatchInflateContext` to chunk info for batch chunks. 2. the `compressed_size` for the blobs in batch mode is not correctly set. We thus fix it by setting the value of `dumped_size`. Signed-off-by: Wenhao Ren <[email protected]>
Signed-off-by: Wenhao Ren <[email protected]>
Currently, many error are output as `os error 22` lossing customized log info. So we change the Error type for correctly output and log the error info as what we expected. Signed-off-by: Wenhao Ren <[email protected]>
Read amplification for batch chunk is not correctly implemented that may crash. The read amplification is rewrited to fix this bug. A unit test for read amplification is also added for covering this code. Signed-off-by: Wenhao Ren <[email protected]>
`BlobCompressionContextInfo` is need to read batch chunk info. `BlobCCI` is introduced for simplifying the code, and decrease the times of getting this context by lazy loading. Signed-off-by: Wenhao Ren <[email protected]>
1. Add the validation for batch chunks. 2. Add unit test for `BatchInflateContext`. Signed-off-by: Wenhao Ren <[email protected]>
Signed-off-by: Wenhao Ren <[email protected]>
By passing the chunk continuous check, and correctly sort batch chunks, the prefetch request will not be interrupted by batch chunks anymore. Signed-off-by: Wenhao Ren <[email protected]>
Relevant Issue (if applicable)
If there are Issues related to this PullRequest, please list it.
Details
--batch-size
enabled.Types of changes
What types of changes does your PullRequest introduce? Put an
x
in all the boxes that apply:Checklist
Go over all the following points, and put an
x
in all the boxes that apply.