-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
COUCH2PG_USERS_META_DOC_LIMIT Safety Check #99
Comments
I think the main thing is to make sure it's numerical using the |
+1 @garethbowen. Just making sure it's numerical. |
We forgot to triage and assign a project to this ticket before fixing it. I just assigned it to one board and moved it to ready for test because it was fixed. Because it is a doc fix and then only add a safety check, we should only check whether setting the variable or not the startup is affected, how it behave if a wrong value is assigned, and whether at least the sync continue to happens after a successful startup. The branch is |
Actually I don't think that the last test behaves as we expected , the process should fail if an invalid number is passed, otherwise it gives the impression the value passed was "accepted" and used by medic-couch2pg, but in reality it parsed as a @njogz I know we use the same trick to parse other values (the use of |
@mrsarm it should work with a default value if the environment variable passed is invalid which is what this code is supposed to do. Do you mind trying to replicate what @meghna-khemka got? I see the default value when I pass an invalid number. |
@mrsarm : I think I had some Git rebase issues which lead me to believe that it showing up NaN whereas incase I pass a arbritary string in this variable.Upon testing again I can confirm that if I pass a string it is picking default value of 50 instead of NaN .I believe this is not expected? Can we get this fixed... I think change required would be |
@meghna-khemka thanks for the new report. Anyway, this is not new, because the Anyway, returning the default value instead of a |
We need to put a numerical safety check on this variable to guard against wrong entries.
The text was updated successfully, but these errors were encountered: