GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Bigtable: Adding Integration Test of BigtableInstanceAdminClient by rahulKQL · Pull Request #6186 · googleapis/google-cloud-java Conversation
|
Codecov Report
@@ Coverage Diff @@ ## master #6186 +/- ## ========================================= Coverage 47.51% 47.51% - Complexity 27460 27475 +15 ========================================= Files 2526 2526 Lines 274681 274681 Branches 31402 31397 -5 ========================================= Hits 130521 130521 Misses 134528 134528 Partials 9632 9632 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| .addCluster(newClusterId, "us-central1-a", 1, StorageType.SSD) | ||
| .setDisplayName("Fresh-Instance-Name") | ||
| .addLabel("state", "readytodelete") | ||
| .setType(Instance.Type.PRODUCTION)); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would use a development instance. Also, prod instances require at least 3 nodes, while your cluster only has 1
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also, you should move this out of the try
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My apologies for the number of nodes. I have switched to Development cluster:
client.createInstance( CreateInstanceRequest.of(newInstanceId) .addCluster(newClusterId, "us-central1-a", 0, StorageType.SSD) .setDisplayName("Fresh-Instance-Name") .addLabel("state", "readytodelete") .setType(Instance.Type.DEVELOPMENT));
Q: This was confusing to me, whenever I used 1 for the server nodes it threw an IllegalArgumentException stating server nodes cannot be provided.
com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Error in field 'clusters' : Serve nodes cannot be specified for development instances.
This worked fine when the server node is 0(It creates an instance with a cluster combining of 0 nodes). Should we change this behavior or should we update the docs?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Test case for AppProfile, IAMPolicy, Instance, Clusters. - BigtableInstanceAdminClient in AbstractTestEnv. - Added cleanups for stale appProfile/instance/cluster. - Setup a cleanUpInstance() in case of prod or direct_path env type.
5866706 to
46c64c0
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…gleapis#6186) * Adding Integration Test of BigtableInstanceAdminClient - Test case for AppProfile, IAMPolicy, Instance, Clusters. - BigtableInstanceAdminClient in AbstractTestEnv. - Added cleanups for stale appProfile/instance/cluster. - Setup a cleanUpInstance() in case of prod or direct_path env type. * Shifted instanse admin check into isInstanceAdminSupported()
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.