This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
[PDS-403847] [III] Part 3: Accept Nodes Presenting Plausible-Evolution IDs Even If Not In Quorum #6768
Merged
Merged
[PDS-403847] [III] Part 3: Accept Nodes Presenting Plausible-Evolution IDs Even If Not In Quorum #6768
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3e209ef
updates
jeremyk-91 b234c5c
fix revapi
jeremyk-91 7ea5738
self cr
jeremyk-91 93b6bea
spotlesssssssssssssssss
jeremyk-91 a60075d
update topology
jeremyk-91 2dc84ff
self cr
jeremyk-91 b511673
fix
jeremyk-91 5e36394
fork test
jeremyk-91 7eeb1fb
spotless
jeremyk-91 faf2287
Merge branch 'develop' into jkong/403847-group-flames
jeremyk-91 c479009
Add generated changelog entries
svc-changelog bfee3cb
brrrrrr
jeremyk-91 7a45687
Merge branch 'jkong/403847-group-flames' of github.com:palantir/atlas…
jeremyk-91 c19d654
allow nonconsensus additions
jeremyk-91 f64c861
Merge remote-tracking branch 'origin/develop' into jkong/403847-one-d…
jeremyk-91 ff2bfe0
Spotless
jeremyk-91 dff91b3
self cr
jeremyk-91 0444103
oops
jeremyk-91 f4aa11e
CR feedback
jeremyk-91 9751175
self CR iteration 2
jeremyk-91 39ff2cf
CR errors
jeremyk-91 092f7d8
more than expected
jeremyk-91 7c8b257
changelog
jeremyk-91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...dra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/NonSoftFailureHostIdResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* (c) Copyright 2023 Palantir Technologies Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.palantir.atlasdb.keyvalue.cassandra; | ||
|
||
import com.palantir.logsafe.Preconditions; | ||
import java.util.Set; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
public interface NonSoftFailureHostIdResult { | ||
@Value.Parameter | ||
HostIdResult result(); | ||
|
||
@Value.Derived | ||
default HostIdResult.Type type() { | ||
return result().type(); | ||
} | ||
|
||
@Value.Derived | ||
default Set<String> hostIds() { | ||
return result().hostIds(); | ||
} | ||
|
||
static NonSoftFailureHostIdResult wrap(HostIdResult result) { | ||
return ImmutableNonSoftFailureHostIdResult.of(result); | ||
} | ||
|
||
@Value.Check | ||
default void check() { | ||
Preconditions.checkArgument( | ||
result().type() != HostIdResult.Type.SOFT_FAILURE, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the nittiest of nits, and I don't really care if you don't action this: you can just use type! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gah! this is my fault for not pushing changes all the way down There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and, as per recent discussions, you can be very sure this will be actioned 😉 |
||
"Soft failures are not allowed in a NonSoftFailureHostIdResult."); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-actionable: The existence of a type NonemptySet would be nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it would :)