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

Node tests - transactions fix #2611

Merged
merged 8 commits into from
Nov 6, 2024
Merged

Node tests - transactions fix #2611

merged 8 commits into from
Nov 6, 2024

Conversation

Muhammad-awawdi-amazon
Copy link
Collaborator

@Muhammad-awawdi-amazon Muhammad-awawdi-amazon commented Nov 5, 2024

Issue link

This Pull Request is linked to issue (URL): #2622

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.

Signed-off-by: Ubuntu <[email protected]>
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

Duplicate of #2536, please close

if (!cluster.checkIfServerVersionLessThan("7.2.0")) {
expect(result[0].inactive).toBeGreaterThan(0);
if (cluster.checkIfServerVersionLessThan("7.2.0")) {
expect(result[0].idle).toBeGreaterThan(0); // Use `idle` for Redis versions before 7.2.0
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand Nov 5, 2024

Choose a reason for hiding this comment

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

idle is checked 2 lines above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Yury-Fridlyand Deleted the WAIT transactions test completley.
I've seen in your PR you're running this test for versions greater than 7.0.0. but note that it's also failing for 7.2
the whole WAIT in the transactions is flaky as it seems to be relevant to how fast the engine handles it, sometimes it does succeed on 6.2 and sometimes it fails, so we can't be completely sure how it behaves
Anyhow, we agreed upon deleting the test and merging this PR since we need it ASAP

Signed-off-by: Muhammad Awawdi <[email protected]>
Signed-off-by: Muhammad Awawdi <[email protected]>
@Muhammad-awawdi-amazon Muhammad-awawdi-amazon changed the title node tests - delete WAIT test and update inactive to idle in versions… Node tests - transactions fix Nov 6, 2024
@Muhammad-awawdi-amazon Muhammad-awawdi-amazon self-assigned this Nov 6, 2024
@Muhammad-awawdi-amazon Muhammad-awawdi-amazon added the node Node.js wrapper label Nov 6, 2024
Signed-off-by: Muhammad Awawdi <[email protected]>
Signed-off-by: Muhammad Awawdi <[email protected]>
Signed-off-by: Muhammad Awawdi <[email protected]>
@avifenesh
Copy link
Member

Duplicate of #2536, please close

The change will be just removing wait from transaction, if you have disagreement, we will discuss a change base on decision.

@avifenesh avifenesh dismissed Yury-Fridlyand’s stale review November 6, 2024 10:05

Overiding since we merging a specific change, the discussion is still open if you see fit.

@avifenesh avifenesh merged commit 3a1c2b6 into release-1.2 Nov 6, 2024
17 of 18 checks passed
@Muhammad-awawdi-amazon Muhammad-awawdi-amazon deleted the transactions2-fix branch November 21, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
node Node.js wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants