-
Notifications
You must be signed in to change notification settings - Fork 71
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
Switch replication methods #173
Conversation
self.assertTrue(fulltbl_primary_keys.issubset(incrmntl_primary_keys)) | ||
|
||
#verify that the last message is not a activateversion message for incremental sync | ||
self.assertNotEqual('activate_version', incrmntl_sync_records[stream]['messages'][-1]['action']) |
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.
The activate_version message tells the loaders it is okay to go ahead and load data into the table. If we have sent all of the data, it is okay to start loading. So although this message may not be necessary, it would have no negative consequences.
Also, If they take the appropriate action and fix it so that they do not send the activate_version as the first message for a new table version for incremental, waiting until all data is ready before deleting the previous full table records, Then it would be necessary/critical to have this message be sent.
So in the final version we should assert that the only the last message is an activate version, and as a workaround we should verify that there is an activate message being sent.
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.
Added a qa task in the DOD of the ticket to modify the assertions based on the final implementation.
self.assertEqual('activate_version', fulltbl_sync_records[stream]['messages'][fulltbl_sync_count+1] | ||
['action']) |
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.
Also, the same comment as above. I think we should expect this and also when the ticket is fixed assert that there is no other message that is an activate_version message. We should probably write out that assertion that will fail and comment it out with a comment mentioning the ticket that will address the issue.
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 don't see a change here.
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.
For the activate version, added a qa task/note in the ticket itself in the DOD to add or m,odify the assertions based on the final implementation.
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.
Approving, but I don't see a change or comment for the activate version in the second test
#verify that the table version incremented after every sync | ||
self.assertGreater(incrmntl_sync_records[stream]['table_version'], | ||
fulltbl_sync_records[stream]['table_version'], | ||
msg = "Table version is not incremented after a successful sync") |
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.
Indentation
Co-authored-by: bhtowles <[email protected]>
Co-authored-by: bhtowles <[email protected]>
Co-authored-by: bhtowles <[email protected]>
Co-authored-by: bhtowles <[email protected]>
Description of change
Switching replication method from full_table to incremental and vice versa
QA steps
Risks
low
Rollback steps