You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "jrhenderson1988 (via GitHub)" <gi...@apache.org> on 2026/02/28 09:17:48 UTC

[PR] feat(java-sdk) Adds missing methods to async TCP UsersClient [iggy]

jrhenderson1988 opened a new pull request, #2837:
URL: https://github.com/apache/iggy/pull/2837

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #2826 
   
   ## Rationale
   
   Brings the `UsersClient` interface in the async package up to parity with the `UsersClient` in the blocking package. Implements all the new methods in the async TCP implementation.
   
   ## What changed?
   
   Prior to this PR, only the `login` and `logout` methods were available on the async `UsersClient` whereas the blocking version had another ~7 methods (plus overloads). This PR adds the missing methods and implements them along with integration tests, bringing the async version of `UsersClient` to parity with the blocking version. I also implemented some helper methods on `AsyncTcpConnection`, similar to those on the blocking `InternalTcpClient` to make the new methods and any future methods a bit more succinct.
   
   <!--
   2-4 sentences. Problem first (before), then solution (after).
   
   GOOD:
   
   "Messages were unavailable when background message_saver committed the
   journal and started async disk I/O before completion. Polling during
   this window found neither journal nor disk data.
   
   The fix freezes journal batches in the in-flight buffer before async persist."
   
   GOOD:
   
   "When many small messages accumulate in the journal, the flush passes
   thousands of IO vectors to writev(), exceeding IOV_MAX (1024 on Linux)."
   
   BAD:
   - Walls of text
   - "This PR adds..." (we can see the diff)
   -->
   
   ## Local Execution
   
   - Passed
   - Pre-commit hooks - I installed prek after pushing up my code but noticed that it doesn't seem to support Java when I ran it.
   
   <!--
   You must run your code locally before submitting.
   "Relying on CI" is not acceptable - PRs from authors who haven't run the code will be closed.
   
   Did you have `prek` installed? It runs automatically on commit and covers all project languages. See [CONTRIBUTING.md](https://github.com/apache/iggy/blob/master/CONTRIBUTING.md).
   -->
   
   ## AI Usage
   
   Only AI usage was Jetbrains local models for full line code completion. Verified code works correctly by running tests and eyeballing it. I could explain every line if asked.
   
   <!--
   If AI tools were used, please answer:
   1. Which tools? (e.g., GitHub Copilot, Claude, ChatGPT)
   2. Scope of usage? (e.g., autocomplete, generated functions, entire implementation)
   3. How did you verify the generated code works correctly?
   4. Can you explain every line of the code if asked?
   
   If no AI tools were used, write "None" or delete this section.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "mmodzelewski (via GitHub)" <gi...@apache.org>.
mmodzelewski commented on PR #2837:
URL: https://github.com/apache/iggy/pull/2837#issuecomment-3979787639

   Cheers @jrhenderson1988, that's now in master.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "mmodzelewski (via GitHub)" <gi...@apache.org>.
mmodzelewski commented on PR #2837:
URL: https://github.com/apache/iggy/pull/2837#issuecomment-3976991688

   @jrhenderson1988 Thanks for the PR. I've updated the PR title to match our CI checks. Please verify that the ASF licence headers are inserted in all files. You can easily fix that with `./scripts/ci/license-headers.sh --fix`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "mmodzelewski (via GitHub)" <gi...@apache.org>.
mmodzelewski merged PR #2837:
URL: https://github.com/apache/iggy/pull/2837


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "jrhenderson1988 (via GitHub)" <gi...@apache.org>.
jrhenderson1988 commented on PR #2837:
URL: https://github.com/apache/iggy/pull/2837#issuecomment-3979876651

   No worries - thanks for merging 🙂 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #2837:
URL: https://github.com/apache/iggy/pull/2837#issuecomment-3976967893

   ## [Codecov](https://app.codecov.io/gh/apache/iggy/pull/2837?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `95.58824%` with `3 lines` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 67.69%. Comparing base ([`71eb4d5`](https://app.codecov.io/gh/apache/iggy/commit/71eb4d5f088c92f67af15e3faef5997851677307?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`a499701`](https://app.codecov.io/gh/apache/iggy/commit/a499701727968171fdab9d116d2f208ec2d8a52c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/iggy/pull/2837?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...ache/iggy/client/async/tcp/AsyncTcpConnection.java](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&filepath=foreign%2Fjava%2Fjava-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Figgy%2Fclient%2Fasync%2Ftcp%2FAsyncTcpConnection.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Zm9yZWlnbi9qYXZhL2phdmEtc2RrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pZ2d5L2NsaWVudC9hc3luYy90Y3AvQXN5bmNUY3BDb25uZWN0aW9uLmphdmE=) | 88.88% | [1 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...g/apache/iggy/client/async/tcp/UsersTcpClient.java](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&filepath=foreign%2Fjava%2Fjava-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Figgy%2Fclient%2Fasync%2Ftcp%2FUsersTcpClient.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Zm9yZWlnbi9qYXZhL2phdmEtc2RrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pZ2d5L2NsaWVudC9hc3luYy90Y3AvVXNlcnNUY3BDbGllbnQuamF2YQ==) | 97.77% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #2837      +/-   ##
   ============================================
   + Coverage     67.66%   67.69%   +0.02%     
   - Complexity      708      739      +31     
   ============================================
     Files          1030     1031       +1     
     Lines         83846    83912      +66     
     Branches      60704    60705       +1     
   ============================================
   + Hits          56733    56802      +69     
   + Misses        24765    24761       -4     
   - Partials       2348     2349       +1     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/iggy/pull/2837/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [java](https://app.codecov.io/gh/apache/iggy/pull/2837/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `54.83% <95.58%> (+0.81%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/iggy/pull/2837?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...java/org/apache/iggy/client/async/UsersClient.java](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&filepath=foreign%2Fjava%2Fjava-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Figgy%2Fclient%2Fasync%2FUsersClient.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Zm9yZWlnbi9qYXZhL2phdmEtc2RrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pZ2d5L2NsaWVudC9hc3luYy9Vc2Vyc0NsaWVudC5qYXZh) | `100.00% <100.00%> (ø)` | |
   | [...g/apache/iggy/client/async/tcp/UsersTcpClient.java](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&filepath=foreign%2Fjava%2Fjava-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Figgy%2Fclient%2Fasync%2Ftcp%2FUsersTcpClient.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Zm9yZWlnbi9qYXZhL2phdmEtc2RrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pZ2d5L2NsaWVudC9hc3luYy90Y3AvVXNlcnNUY3BDbGllbnQuamF2YQ==) | `98.55% <97.77%> (+21.62%)` | :arrow_up: |
   | [...ache/iggy/client/async/tcp/AsyncTcpConnection.java](https://app.codecov.io/gh/apache/iggy/pull/2837?src=pr&el=tree&filepath=foreign%2Fjava%2Fjava-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Figgy%2Fclient%2Fasync%2Ftcp%2FAsyncTcpConnection.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Zm9yZWlnbi9qYXZhL2phdmEtc2RrL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9pZ2d5L2NsaWVudC9hc3luYy90Y3AvQXN5bmNUY3BDb25uZWN0aW9uLmphdmE=) | `62.50% <88.88%> (+4.31%)` | :arrow_up: |
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(java): add missing methods to async TCP UsersClient [iggy]

Posted by "jrhenderson1988 (via GitHub)" <gi...@apache.org>.
jrhenderson1988 commented on PR #2837:
URL: https://github.com/apache/iggy/pull/2837#issuecomment-3977282133

   No worries, thanks for updating that @mmodzelewski - I've just added the ASF header where it was missing now. I seem to be having problems running the pre-push hook with `prek` as it appears to be failing to install some kind of Go linting tool. I've just pushed with `--no-verify` for now while I try to get it working.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org