Skip to content

PHOENIX-7751: Feature to validate table data using PhoenixSyncTable tool b/w source and target cluster#2419

Open
rahulLiving wants to merge 5 commits intoapache:5.2from
rahulLiving:PHOENIX-7751_5.2
Open

PHOENIX-7751: Feature to validate table data using PhoenixSyncTable tool b/w source and target cluster#2419
rahulLiving wants to merge 5 commits intoapache:5.2from
rahulLiving:PHOENIX-7751_5.2

Conversation

@rahulLiving
Copy link
Copy Markdown
Contributor

No description provided.


// We shouldn't see expired rows even with --raw-scan flag
Job job2 = runSyncTool(uniqueTableName, "--raw-scan");
// Run sync tool after compaction - should detect mismatch (source has rows, target doesn't)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we handle this filtering in the sync tool coproc? Otherwise, we will end up seeing a lot of false +ves.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we don't want to read expired rows. Thanks.

scan.setAttribute(BaseScannerRegionObserverConstants.SYNC_TABLE_CHUNK_FORMATION, TRUE_BYTES);
scan.setAttribute(BaseScannerRegionObserverConstants.SKIP_REGION_BOUNDARY_CHECK, TRUE_BYTES);
scan.setAttribute(BaseScannerRegionObserverConstants.UNGROUPED_AGG, TRUE_BYTES);
ScanUtil.setScanAttributesForPhoenixTTL(scan, pTable, phoenixConn);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be useful for PhoenixTTLRegionScanner which is for view TTL, so not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants