-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Features/actor lineage #4136
Features/actor lineage #4136
Conversation
flow/flow.h
Outdated
// A user should implement this for any type | ||
// within the properies class. | ||
template<class Value> | ||
bool isSet(Value Derived::*member) { |
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.
Should this function ever be called?
this has to be implemented by subclasses
Makes me wonder if it shouldn't ever be called, in which case maybe we can ASSERT(false) here
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.
probably - I still wonder how we could provide a default implementation for this... But all solutions involve a lot of template-code (and I don't want to do that in flow.h
...)
fdbrpc/RoleLineage.h
Outdated
static StringRef name; | ||
ProcessClass::ClusterRole role = ProcessClass::NoRole; | ||
|
||
bool isSet(ProcessClass::ClusterRole RoleLineage::*member) { |
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.
I don't understand this syntax. Do you have a reference I could look at for this (I'm not exactly sure what to google). What type does member have?
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.
This is the pointer to member syntax (we use this in loadBalance
). The only thing I can find is MS documentation: https://docs.microsoft.com/en-us/cpp/cpp/pointer-to-member-operators-dot-star-and-star?view=msvc-160 (but if you google it you can also find some stack overflow questions that are useful)
ActorLineageSet Implementation
…entd add default constructor to Sample
Check validity of ActorLineage
…entd fix special keyspace register
Fixes the following issues: 1. Use the right index when initializing the WriteOnlySet's vector of atomics. Also switch to std::atomic_init to initialize each atomic in the vector (cannot default construct the atomics in the vector because std::atomic does not have a copy constructor). 2. Add failure check for when items cannot be inserted into the WriteOnlySet due to capacity constraints. This situation occurs when `copy` is not called on the WriteOnlySet, such as when sampling is disabled. The `copy` function is what clears the WriteOnlySet. 3. Remove a global config feature I added to update the ClientDBInfo object used by the global config listener function. This needs more investigation, but the effect of this change could be that global config changes are not correctly recognized on fdbserver processes. 4. Add various ASSERTs to verify data in WriteOnlySet.
This is causing problems with the 5.2.0 restarting test. Removing this line disables fdbserver processes from receiving global config updates, instead requiring a restart to see them.
Fixes/fix simulation
AWS CodeBuild CI Report
|
AWS CodeBuild CI Report
|
AWS CodeBuild CI Report
|
…lease-7.0 Revert "Merge pull request #4136 from sfc-gh-mpilman/features/actor-l…
Revert "Merge pull request #4136 from sfc-gh-mpilman/features/actor-l…
This PR is resolves #...
Changes in this PR:
General guideline:
Please verify that all things listed below were considered and check them. If an item doesn't apply to this type of PR (for example a documentation change doesn't need to be performance tested), you should make a
strikethrough(markdown syntax:~~strikethrough~~
). More infos on the guidlines can be found here.Style
git clang-format
).Performance
std::vector
vsVectorRef
).SlowTask
traces.Testing
ASSERT
,ASSERT_WE_THINK
, andTEST
macros are added in appropriate places.