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

Java: fixed some spotbugs issues #2653

Draft
wants to merge 95 commits into
base: main
Choose a base branch
from
Draft

Java: fixed some spotbugs issues #2653

wants to merge 95 commits into from

Conversation

yipin-chen
Copy link
Collaborator

@yipin-chen yipin-chen commented Nov 8, 2024

Issue link

#2612

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Commits will be squashed upon merging.

shohamazon and others added 30 commits October 10, 2024 16:09
---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
* Python [FT.CREATE] command added

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>

---------

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Added inflightRequestsLimit client config to java (#2408)

* Add inflight request limit config to java

Signed-off-by: GilboaAWS <gilboabg@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
* Make redis-rs part of this repo
* Improved PYTHON DEVELOPERS.md file
* Added Makefile for unified build method for all the languages
---------

Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
Signed-off-by: Muhammad-awawdi-amazon <mawawdi@amazon.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
* Added inflightRequestsLimit client config to Node

---------

Signed-off-by: GilboaAWS <gilboabg@amazon.com>
* Run modules CI on demand.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* Python [FT.DROPINDEX] Added command

---------

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
* Update routing for commands from server modules.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* `FT.DROPINDEX`.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
---------

Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Keep a single Runtime: `tokio`

- Removed dead code for `async-std`
- Fixed `redis-rs` tests so they could be run with a simple `cargo test` command
- Changed the default features to include: "tokio-comp", "tokio-rustls-comp", "connection-manager", "cluster", "cluster-async"
- Fixed a flaky `glide-core` test

Signed-off-by: Eran Ifrah <eifrah@amazon.com>
fix ci

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* `FT.CREATE`

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…2471)

* Python: Add commands FT.ALIASADD, FT.ALIASDEL, FT.ALIASUPDATE

---------

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
* Java: add JSON.SET and JSON.GET

---------

Signed-off-by: James Xin <james.xin@improving.com>
* Node: add server modules CI support

---------

Signed-off-by: TJ Zhang <tj.zhang@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Chloe <chloe.yip@improving.com>
Co-authored-by: TJ Zhang <tj.zhang@improving.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Co-authored-by: Chloe <chloe.yip@improving.com>
* `FT.AGGREGATE`.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* `FT.INFO`

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
* Node: add commands JSON.GET and JSON.SET

Signed-off-by: TJ Zhang <tj.zhang@improving.com>
* `JSON.ARRINSERT` and `JSON.ARRLEN`

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* fix CI

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* fix CI

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…the request (#2479)

* Avoid retrying on IO errors when it’s unclear if the server received the request

Signed-off-by: barshaul <barshaul@amazon.com>
Some cleaning for unnecessary code to set the floor for next PR

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
* Java: add JSON.ARRAPPEND command
---------
Signed-off-by: Yi-Pin Chen <yi-pin.chen@improving.com>
shohamazon and others added 26 commits October 29, 2024 15:13
---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
* Fix script kill IT

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* Add node REPL

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
---------

Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Co-authored-by: Shoham Elias <shohame@amazon.com>
* `FT.INFO`.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
* Node: Add command JSON.STRLEN

Signed-off-by: TJ Zhang <tj.zhang@improving.com>
* `JSON.ARRINSERT`, `JSON.ARRPOP` and `JSON.ARRLEN`.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: ikolomi <ikolomin@amazon.com>
* Python: FT.PROFILE command added

---------

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
* Node: add ARRTRIM command

Signed-off-by: Yi-Pin Chen <yi-pin.chen@improving.com>
* Node: add FT.SEARCH

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>

---------

Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
---------

Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: barshaul <barshaul@amazon.com>
---------

Signed-off-by: Ubuntu <ubuntu@ip-172-31-1-163.ec2.internal>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-1-163.ec2.internal>
* Update README.md nodejs platform support (#2397)

* Update README.md

Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>

* Update README.md - lint fix

Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>

* Update README.md ling

Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>

* Update node/README.md

Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>

---------

Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* CI - Minimal and full CI matrix impl (#2051)

* CI - Minimal and full CI matrix impl

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Fix mypy failing (#2453)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Python: adds JSON.ARRLEN command (#2403)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>

* CI - Minimal and full CI matrix impl (#2051)

* CI - Minimal and full CI matrix impl

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Fix mypy failing (#2453)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Python: adds JSON.ARRLEN command (#2403)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>

* CI - Minimal and full CI matrix impl (#2051)

* CI - Minimal and full CI matrix impl

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Fix mypy failing (#2453)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Python: adds JSON.ARRLEN command (#2403)

---------

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>

* Fix for - Minimal and full CI matrix impl #2051 (#2500)

* Refactor tests to use async cleanup and improve error handling

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Enhance Jest configuration and add test setup file; update build scripts and dependencies

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Update devDependencies in package.json for hybrid-node-tests to latest versions

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Enhance test utilities and command tests with improved wait logic and version checks

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Refactor tests to assert expected replica reads are less than or equal to actual reads; update connection handling in utilities and allow unused imports in types

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Update dependencies and enhance PyO3 bindings; add new features and improve type handling

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Update GitHub workflows: enhance linting configurations, adjust engine version requirements, and remove obsolete Redis installation workflow

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* fixes for CI (#2552)

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Refactor CI configuration for consistency and clarity

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Refactor CI configuration for consistency and clarity

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
…ments (Go, Python, Node)

Signed-off-by: barshaul <barshaul@amazon.com>
Signed-off-by: barshaul <barshaul@amazon.com>
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: Yi-Pin Chen <yi-pin.chen@improving.com>
Signed-off-by: Yi-Pin Chen <yi-pin.chen@improving.com>
@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label Nov 8, 2024
@yipin-chen yipin-chen changed the base branch from release-1.2 to main December 2, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.