-
-
Notifications
You must be signed in to change notification settings - Fork 656
fix(constants): Remove unsupported CLIENT_DEPRECATE_EOF flag from constants #4033
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
base: master
Are you sure you want to change the base?
fix(constants): Remove unsupported CLIENT_DEPRECATE_EOF flag from constants #4033
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4033 +/- ##
==========================================
- Coverage 89.87% 89.87% -0.01%
==========================================
Files 86 86
Lines 13625 13624 -1
Branches 1618 1619 +1
==========================================
- Hits 12245 12244 -1
Misses 1380 1380
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey, @HappyZombies! I can't see the need to include a test that checks for a non-existent variable, since it has been permanently removed. I think a test for this scenario would be a connection that fails when using the For example, "capturing" this log from #4009: Then, testing the same connection + query without the flag and this time, it should pass. What do you think? |
|
@wellwelwel I'm good with that change, however this means I would need to leave the constant value of DEPRECATE_EOF in order to have test that checks for a failure on on/off, since the only way to do a test like that after removing the constant would be to manually modify the 'config.clientFlags', or other work arounds. I’m okay doing that if we think it’s the more valuable test, just wanted to call out that it would rely on directly modifying internal config rather than using a supported option. In which case I can just do this test since the current one isn't that valuable Now of course unless you think it's beneficial to leave that non working constant of DEPRECATE_EOF flag ... |
I would suggest we remove the |
This PR removes the CLIENT_DEPRECATE_EOF client capability (stored as
DEPRECATE_EOFin code), which is currently advertised but not supported and can cause protocol errors. It also adds a regression test to ensure only valid client capability flags are applied and unknown flags are ignored.This PR resolves #4009, view the item for more details and the investigation done for this.