Uh oh!
There was an error while loading. Please reload this page.
PHOENIX-6447: Add support for SYSTEM.CHILD_LINK table in systemcatalogwalentryfilter - #1201
Conversation
sandeepvinayak
commented
Apr 21, 2021
@gjacoby126@yanxinyi can you please review this to add system child link table in systemcatalog wal entry filter for replication. |
26d6c90 to
04c7626Comparestoty
commented
Apr 21, 2021
💔 -1 overall
This message was automatically generated. |
2ecde33 to
fc9792fCompareUh oh!
There was an error while loading. Please reload this page.
| private boolean isTenantRowCellSystemChildLink(final Cell cell) { | ||
| ImmutableBytesWritable key = new ImmutableBytesWritable( | ||
| cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()); | ||
| //rows in system.catalog that aren't tenant-owned will |
There was a problem hiding this comment.
nit: Remove system.catalog from comments.
| cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()); | ||
| //rows in system.catalog that aren't tenant-owned will | ||
| // have a leading separator byte | ||
| boolean isTenantRowCell = |
There was a problem hiding this comment.
Does the schema for system.child_link table the same as that for system.catalog? and does this assumption of leading separator byte holds true there as well? If so we can refactor isTenantRowCellSystemCatalog and reuse the same function here.
There was a problem hiding this comment.
The schema remains the same but the system catalog table is not supposed to have tenant-owned data with empty tenant id anymore. Thus, I believe we need different methods.
5f5457a to
ccb7d4dCompare
gjacoby126
left a comment
There was a problem hiding this comment.
Looks good, just a couple nits
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stoty
commented
Apr 22, 2021
💔 -1 overall
This message was automatically generated. |
gjacoby126
commented
Apr 22, 2021
@sandeepvinayak - could you please change your commit message to match the JIRA name (with the JIRA number). Then this looks good to go. |
c81bc6f to
67bb8ffComparesandeepvinayak
commented
Apr 22, 2021
@gjacoby126 changed the commit message |
gjacoby126
left a comment
There was a problem hiding this comment.
+1, thanks for the patch @sandeepvinayak
No description provided.