-
Notifications
You must be signed in to change notification settings - Fork 24
Added per-request namespace capability (on-premises only). #51
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
Conversation
Also modified internal timing to use nanoTime() instead of currentTimeMillis(), which can go backwards in specific instances, and made per-request-iteration timeout values more accurate.
| * Sets the optional namespace. | ||
| * On-premises only. | ||
| * | ||
| * This overrides any default value set in {@link NoSQLHandleConfig}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reference the specific interface in this class?
| other.setStartNanos(this.startNanos); | ||
| other.setRetryStats(this.retryStats); | ||
| other.setReadRateLimiter(this.readRateLimiter); | ||
| other.setWriteRateLimiter(this.writeRateLimiter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the namespace be copied too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See new PR #52.
| tres.waitForCompletion(handle, 100000, 1000); | ||
|
|
||
| /* drop namespace - use cascade to remove tables */ | ||
| doSysOp(handle, "drop namespace myns cascade"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe verify that the tables and the namespace is gone, with listTables() and listNamespaces()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that really matters for this test, as the @after logic will delete the namespace and tables as well. I added this just to bring it in line with the internal proxy namespace tests. Note it will throw an error if the drop fails.
cezarfx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of comments, otherwise looks good.
Added per-request namespace capability (on-premises only).
Also modified internal timing to use nanoTime() instead of
currentTimeMillis(), which can go backwards in specific instances,
and made per-request-iteration timeout values more accurate.