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

[Go] Add client batching integration tests #1555

Merged
merged 2 commits into from
Feb 14, 2024
Merged

[Go] Add client batching integration tests #1555

merged 2 commits into from
Feb 14, 2024

Conversation

batiati
Copy link
Contributor

@batiati batiati commented Feb 14, 2024

No description provided.

Copy link
Contributor

@kprotty kprotty left a comment

Choose a reason for hiding this comment

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

Good to have this test in. Hopefully it shouldn't take too long to execute on CI.

TIGERBEETLE_CLUSTER_ID uint64 = 0
TIGERBEETLE_REPLICA_ID uint32 = 0
TIGERBEETLE_REPLICA_COUNT uint32 = 1
TIGERBEETLE_CONCURRENCY_MAX uint = 4096
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we bump this to 8192 to reflect the value in tb_client/context.zig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like the way we handle TooManyOutstanding isn't quite right. This test exposes a bug when running with concurrency_max higher than the size of the DemuxPool (which is 4096).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see. tb_client wasn't adjusted properly after DemuxPool was introduced. It should be addressed by the intrusive packets PR at least.

src/clients/go/tb_client_test.go Outdated Show resolved Hide resolved
@batiati
Copy link
Contributor Author

batiati commented Feb 14, 2024

Good to have this test in. Hopefully it shouldn't take too long to execute on CI.

Yes, it took just a few seconds (< 10s) to run.

@batiati batiati added this pull request to the merge queue Feb 14, 2024
Merged via the queue into main with commit 2701894 Feb 14, 2024
25 checks passed
@batiati batiati deleted the batiati-go-tests branch February 14, 2024 17:34
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