Skip to content

Conversation

@poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Sep 23, 2024

Motivation

There is a mistake in SameAuthParamsLookupAutoClusterFailover.class, which may cause a ArrayIndexOutOfBoundsException, but it affects nothing because it only happens when no server is available.

Modifications

  • Fix the mistake
  • Add an log

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode self-assigned this Sep 23, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 23, 2024
@lhotari
Copy link
Member

lhotari commented Sep 23, 2024

Any chance to add a test case?

@Technoboy- Technoboy- added this to the 4.1.0 milestone Oct 30, 2024
@Technoboy- Technoboy- closed this Oct 30, 2024
@Technoboy- Technoboy- reopened this Oct 30, 2024
@lhotari lhotari changed the title [fix] FIx ArrayIndexOutOfBoundsException when using SameAuthParamsLookupAutoClusterFailover [fix][client] Fix ArrayIndexOutOfBoundsException when using SameAuthParamsLookupAutoClusterFailover Oct 30, 2024
@lhotari
Copy link
Member

lhotari commented Oct 30, 2024

Any chance to add a test case?

@poorbarcode @Technoboy- any chance to handle this?

@lhotari
Copy link
Member

lhotari commented Nov 29, 2024

@poorbarcode Do you have a chance to follow up on the review comment?

@poorbarcode poorbarcode requested a review from lhotari December 2, 2024 01:47
@poorbarcode
Copy link
Contributor Author

@poorbarcode Do you have a chance to follow up on the review comment?

Answered here: #23336 (comment)

@poorbarcode poorbarcode force-pushed the fix/failover_out_of_array branch from 8057c39 to 471669d Compare December 2, 2024 02:19
@poorbarcode
Copy link
Contributor Author

Rebase master

@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 8 lines in your changes missing coverage. Please review.

Project coverage is 74.37%. Comparing base (bbc6224) to head (471669d).
Report is 772 commits behind head on master.

Files with missing lines Patch % Lines
.../impl/SameAuthParamsLookupAutoClusterFailover.java 55.55% 6 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23336      +/-   ##
============================================
+ Coverage     73.57%   74.37%   +0.80%     
- Complexity    32624    35036    +2412     
============================================
  Files          1877     1944      +67     
  Lines        139502   147334    +7832     
  Branches      15299    16258     +959     
============================================
+ Hits         102638   109583    +6945     
- Misses        28908    29286     +378     
- Partials       7956     8465     +509     
Flag Coverage Δ
inttests 27.29% <0.00%> (+2.70%) ⬆️
systests 24.43% <0.00%> (+0.11%) ⬆️
unittests 73.76% <55.55%> (+0.91%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../impl/SameAuthParamsLookupAutoClusterFailover.java 68.29% <55.55%> (ø)

... and 664 files with indirect coverage changes

@poorbarcode poorbarcode requested review from lhotari and removed request for lhotari December 3, 2024 09:49
@Technoboy- Technoboy- merged commit 8fd5bf5 into apache:master Aug 29, 2025
52 checks passed
@lhotari
Copy link
Member

lhotari commented Sep 4, 2025

Seems that #24662 was related.

lhotari pushed a commit that referenced this pull request Sep 4, 2025
…aramsLookupAutoClusterFailover (#23336)

(cherry picked from commit 8fd5bf5)
lhotari pushed a commit that referenced this pull request Sep 4, 2025
…aramsLookupAutoClusterFailover (#23336)

(cherry picked from commit 8fd5bf5)
lhotari pushed a commit that referenced this pull request Sep 4, 2025
…aramsLookupAutoClusterFailover (#23336)

(cherry picked from commit 8fd5bf5)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Sep 8, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
Technoboy- pushed a commit to Technoboy-/pulsar that referenced this pull request Sep 10, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 11, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
(cherry picked from commit 3552cd9)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 12, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
(cherry picked from commit 3552cd9)
nborisov pushed a commit to nborisov/pulsar that referenced this pull request Sep 12, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 15, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
(cherry picked from commit 8214bfd)
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 15, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
(cherry picked from commit 8214bfd)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 15, 2025
…aramsLookupAutoClusterFailover (apache#23336)

(cherry picked from commit 8fd5bf5)
(cherry picked from commit 8214bfd)
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants