Skip to content

Conversation

@connelly38
Copy link
Member

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.

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.
@connelly38 connelly38 requested review from cezarfx and gmfeinberg March 6, 2023 23:39
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 6, 2023
* Sets the optional namespace.
* On-premises only.
*
* This overrides any default value set in {@link NoSQLHandleConfig}.
Copy link
Contributor

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?

@connelly38 connelly38 merged commit f9f70f2 into main Mar 7, 2023
@connelly38 connelly38 deleted the feature/request_namespaces branch March 7, 2023 17:47
other.setStartNanos(this.startNanos);
other.setRetryStats(this.retryStats);
other.setReadRateLimiter(this.readRateLimiter);
other.setWriteRateLimiter(this.writeRateLimiter);
Copy link
Member

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?

Copy link
Member Author

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");
Copy link
Member

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()?

Copy link
Member Author

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.

Copy link
Member

@cezarfx cezarfx left a 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.

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

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants