-
Notifications
You must be signed in to change notification settings - Fork 293
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
DateTimeOffsetAllScalesTestShouldSucceed Test failures (Values Differ / Ticks must be between Min/Max) #3011
Comments
Taking a quick look, this seems to be SQLServer bug (yet another one, hooray!). Yet what we get is DateTimeOffset with a length of 8: My guess is, because the test reuses the name for udt, SQLServer becomes slightly confused and sometimes reuses types even though they were recreated with a different scale. |
Unrelated to the issue, but might as well mention it here. While trying to debug I've encountered that this assert is always failing SqlClient/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs Line 861 in b1f7eaf
|
Yes, I've encountered this as well, but I'm not sure what's wrong currently... :) |
Thanks. I ran 1000 passes now without issue with unique type per scale 👍 Thanks! |
An issue has been filed |
Oh yeah, this rings a bell. It's arguably a bug in the server's metadata cache. I've seen it when reusing table names with encrypted columns. If you re-use the same name for a different type, it may return the previously cached metadata and result in unexpected behavior. Nice find! |
Fixed by PR #3013 |
I have seen failures of this test:
DateTimeOffsetAllScalesTestShouldSucceed
You can see one instance here:
https://sqlclientdrivers.visualstudio.com/public/_build/results?buildId=101821&view=logs&j=29d1df32-80c6-5ba5-e9d6-57c8659715f0&t=4b5dd44d-d567-5ef9-1055-7c665b22b01c&l=1162
I have added logging and did "Run until failure", it takes a few passes (sometimes 20, sometimes 200+) to fail, but it does fail with these errors:
Then there's also this one:
Now I'm not sure if it's the test's fault, or if there is something wrong in the MDS code...
I'm adding it as an issue for tracking purposes
Code with added logging:
The text was updated successfully, but these errors were encountered: