-
Notifications
You must be signed in to change notification settings - Fork 58
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
Reject new stage metadata if the deployment id does not match what the client was created with #794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/main/java/net/snowflake/ingest/streaming/internal/StreamingIngestStage.java
Outdated
Show resolved
Hide resolved
src/main/java/net/snowflake/ingest/streaming/internal/StreamingIngestStage.java
Show resolved
Hide resolved
0035=Failed to load {0}. If you use FIPS, import BouncyCastleFipsProvider in the application: {1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sfc-gh-alhuang FYI, let's make sure to update the error message as well when removing an error, or it might be a good idea to never reuse error codes as customer might have custom dependency on them :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 never remove previously used error codes - maybe just rename them if needed to indicate that they are not used anymore.
c8c7a5a
to
0ef0e29
Compare
…e client was created with
0ef0e29
to
1e9e738
Compare
1e9e738
to
ef07694
Compare
0035=Failed to load {0}. If you use FIPS, import BouncyCastleFipsProvider in the application: {1} | ||
0036=Failed to drop channel: {0} | ||
0037=Deployment ID mismatch, Client was created on: {0}, Got upload location for: {1}. Please restart client: {2}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be please recreate client?
(as there is no restart functionality)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant it as "shut down your application and restart it".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
…e client was created with (snowflakedb#794) * Reject new stage metadata if the deployment id does not match what the client was created with * Review comments
This prevents issues when there is transparent failover using Client Redirect or another similar mechanism. Along the way, I found some missing/misconfigured error message resource and fixed them.