Skip to content

Comments

restores highly available service#6153

Open
keith-turner wants to merge 1 commit intoapache:mainfrom
keith-turner:highly-avail-service
Open

restores highly available service#6153
keith-turner wants to merge 1 commit intoapache:mainfrom
keith-turner:highly-avail-service

Conversation

@keith-turner
Copy link
Contributor

Restored highly available service in order to support multiple managers. This change should also avoid clients that connect to a non-primary manager from getting stuck. Made all thrift methods throw ThriftNotActiveServiceException, if the method does not declare this it will cause a server side exception. There was a single one way thrift method that could not throw this, so it would still cause server side exceptions if its called. Delaying advertising should prevent this in most cases.

Restored highly available service in order to support multiple managers.
This change should also avoid clients that connect to a non-primary
manager from getting stuck.  Made all thrift methods throw
ThriftNotActiveServiceException, if the method does not declare this it
will cause a server side exception.  There was a single one way thrift
method that could not throw this, so it would still cause server side
exceptions if its called.  Delaying advertising should prevent this in
most cases.
@keith-turner keith-turner added this to the 4.0.0 milestone Feb 25, 2026
@keith-turner
Copy link
Contributor Author

Now that the compaction coordinator can throw ThriftNotActiveServiceException the compactors should retry if they see this exception. Looked at the compactors and it seems like they will retry as all of their calls use RetryableThriftCall.

* lock.
*
* <p>
* Its expected that all methods in the wrapped thrift service declare they throw
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All these Highly* classes were copied as is from an earlier commit. The only change I made was adding this comment.

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.

1 participant