We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pkg/yurthub/cachemanager/error_keys_test.go
--- PASS: TestXxx (0.00s) --- PASS: TestXxx/test1 (0.00s) === RUN TestRecover error_keys_test.go:109: failed to recover --- FAIL: TestRecover (0.00s) === RUN TestCompress
These two tests share the same variable AOFPrefix.
AOFPrefix
The result of Unmarshal() is not checked.
Unmarshal()
https://github.com/openyurtio/openyurt/blob/v1.5.0/pkg/yurthub/cachemanager/error_keys.go#L235
Actually the data in the /tmp/errorkeys/aof is:
/tmp/errorkeys/aof
{"Operator":"put","Key":"kubelet","Val":"fail to xxx"}perator":"put","Key":"key-31","Val":"value-31"} {"Operator":"put","Key":"key-32","Val":"value-32"} {"Operator":"put","Key":"key-34","Val":"value-34"} ...
Because of the wrong open mode os.O_CREATE|os.O_RDWR, it should has O_TRUNC to make the file clean.
os.O_CREATE|os.O_RDWR
O_TRUNC
/kind failing-test
The text was updated successfully, but these errors were encountered:
@vie-serendipity Please take a look
Sorry, something went wrong.
@fungaren This is indeed a bug. Are you willing to fix it?
@vie-serendipity Sorry I am afraid I can't, because I have not read the related code carefully.
@fungaren ok, thanks for spotting this bug. I'll fix that later on.
No branches or pull requests
Which jobs are failing:
Which test(s) are failing:
pkg/yurthub/cachemanager/error_keys_test.go
Since when has it been failing:
Testgrid link:
Reason for failure:
These two tests share the same variable
AOFPrefix
.The result of
Unmarshal()
is not checked.https://github.com/openyurtio/openyurt/blob/v1.5.0/pkg/yurthub/cachemanager/error_keys.go#L235
Actually the data in the
/tmp/errorkeys/aof
is:Because of the wrong open mode
os.O_CREATE|os.O_RDWR
, it should hasO_TRUNC
to make the file clean.Anything else we need to know:
labels
/kind failing-test
The text was updated successfully, but these errors were encountered: