Skip to content

Conversation

@rahulKQL
Copy link
Owner

@rahulKQL rahulKQL commented Nov 6, 2018

To verify all DataSettings related changes, before adding it into master repo.


This is for review purpose only

@rahulKQL rahulKQL self-assigned this Nov 6, 2018
@rahulKQL rahulKQL requested a review from ajaaym November 6, 2018 10:22
buildCredentialProvider(builder, options.getCredentialOptions());

buildBulkOptions(builder, options);
buildBulkMutations(builder, options);
Copy link
Collaborator

Choose a reason for hiding this comment

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

method name like buildBulkMutationsOptions sounds better I think

Copy link
Owner Author

Choose a reason for hiding this comment

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

Options might confuse the use, I guess, would buildBulkMutationsSettings sound good?.. as in GCJ these are referred as settings

Copy link
Owner Author

@rahulKQL rahulKQL left a comment

Choose a reason for hiding this comment

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

Completed one review

"Disabling retries is not currently supported.");
}
if(options.getRetryOptions().allowRetriesWithoutTimestamp()) {
throw new UnsupportedOperationException("Please use unsafe Mutation method");
Copy link
Owner Author

Choose a reason for hiding this comment

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

Related to Review Comment about unsafe mutation

@ajaaym , I Will add more appropriate message, just want to confirm which factory method to point to.

FixedHeaderProvider.create(GrpcUtil.USER_AGENT_KEY.name(), options.getUserAgent()));

// TODO: implementation for channelCount or channelPerCPU
ManagedChannelBuilder channelBuilder = ManagedChannelBuilder
Copy link
Owner Author

Choose a reason for hiding this comment

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

Related to UserAgent comment

I have verified using debug mode, User Agent is being preserved in TransportChannelProvider. So that is the way to confirm, right?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Having userAgenet value preserved in TransportChannel is good.

.setInitialRpcTimeout(readPartialRowTimeout)
.setMaxRpcTimeout(readPartialRowTimeout)
.setTotalTimeout(ofMillis(options.getCallOptionsConfig().getLongRpcTimeoutMs()));

Copy link
Owner Author

Choose a reason for hiding this comment

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

Related to readPatialRowsTimeout

After reading his comment, My approach here is to set RetrySettings separately for ReadRows & use buildIdempotentRetrySettings for sampleRowKeys & mutateRow (Assuming only these two are non streaming methods).

buildCredentialProvider(builder, options.getCredentialOptions());

buildBulkOptions(builder, options);
buildBulkMutations(builder, options);
Copy link
Owner Author

Choose a reason for hiding this comment

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

Options might confuse the use, I guess, would buildBulkMutationsSettings sound good?.. as in GCJ these are referred as settings

// TODO: an option to set RetryOptions#allowRetriesWithoutTimestamp

if (retryOptions.allowRetriesWithoutTimestamp()) {
LOG.warn("Retries without Timestamp doesn't support, please use Mutation#createUnsafe");
Copy link
Owner Author

Choose a reason for hiding this comment

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

@ajaaym I remember Solomon told about hbase's Mutation but I didn't any unsafe mutation in hbase's Mutation.. Could you please tell what method should we log.. or "just not support" is enough?

@rahulKQL
Copy link
Owner Author

updated code for all feedback points

@rahulKQL rahulKQL merged commit 1c6c48d into dataSettings_addition Nov 14, 2018
@rahulKQL rahulKQL deleted the dataSetting_verify branch November 19, 2018 10:20
rahulKQL added a commit that referenced this pull request Dec 13, 2018
* fixed method names changes

* refactored code based on feedback

* added logger & precondition

* fixed names & error messages
rahulKQL added a commit that referenced this pull request Dec 26, 2018
only adding fromBigtableOptions static method

adding separate methods for each settings

Added check for retry & remvoed unneeded setter

fixed method names changes (#3)

* fixed method names changes

* refactored code based on feedback

* added logger & precondition

* fixed names & error messages

fixed retryCheck condition

added test cases
rahulKQL added a commit that referenced this pull request Jan 21, 2019
only adding fromBigtableOptions static method

adding separate methods for each settings

Added check for retry & remvoed unneeded setter

fixed method names changes (#3)

* fixed method names changes

* refactored code based on feedback

* added logger & precondition

* fixed names & error messages

fixed retryCheck condition

added test cases

static method for BigtableDataSettings creation

only adding fromBigtableOptions static method

added test cases

Adding BigtableDataClient & BigtableAdminClient

renamed Factory methods

Reverted BulkMutationSettings changes

refactored Credentail Provider

Server Test case for user-agent

server test case for user-agent

javadoc feedback update

Adding language fix reviewed by Romlogic

Renamed to Veneer Settings.

adding ssl n plaintext test cases

Adding ssl certificates
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.

3 participants