Skip to content
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

Code changes for SNAP-2779 and SNAP-1338: #1373

Merged
merged 4 commits into from
Jul 26, 2019
Merged

Code changes for SNAP-2779 and SNAP-1338: #1373

merged 4 commits into from
Jul 26, 2019

Conversation

snappy-sachin
Copy link
Contributor

Changes proposed in this pull request

  • Adding Redundancy column in Tables List to view count of redundant copies.
  • Adding Redundancy Status column in Tables List to monitor redundancy has been satisfied or broken.
  • Changes for maintaining Redundancy and isRedundancyImpaired details for count of redundant
    copies and redundancy satisfaction/broken status.

Patch testing

  • Tested manually

ReleaseNotes.txt changes

  • Yes, to be updated.

Other PRs

Spark: TIBCOSoftware/snappy-spark#160
Store: TIBCOSoftware/snappy-store#495

 - Adding Redundancy column in Tables List to view count of redundant copies.
 - Adding Redundancy Status column in Tables List to monitor redundancy has been satisfied or broken.
 - Changes for maintaining Redundancy and isRedundancyImpaired details for count of redundant
   copies and redundancy satisfaction/broken status.
 - Display Redundancy as 'NA' if distribution type is REPLICATE.
 - Display buckets count in Red color, if any of the buckets is offline.
Copy link

@kneeraj kneeraj left a comment

Choose a reason for hiding this comment

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

Minor comment.

val numBuckets = tablePrRegion.getPartitionAttributes.getTotalNumBuckets
breakable {
for (i <- 0 until numBuckets) {
val idm = tablePrRegion.getNodeForBucketRead(i)
Copy link

Choose a reason for hiding this comment

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

Test this for time. Use a schema which has multiple tables with a lot of buckets and please check the time it takes to complete all calls. Since this is going to be called for every run so we should check the cost of this.
For example take at least 100 tables with default number of bucket which means 12800 calls will be done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged, will check it and will enhance the code in next release.

@snappy-sachin snappy-sachin merged commit 1d793f1 into master Jul 26, 2019
@snappy-sachin snappy-sachin deleted the SNAP-2779 branch July 26, 2019 18:57
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.

None yet

2 participants