cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Podkowinski (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13457) Diag. Events: Add base classes
Date Thu, 16 Aug 2018 13:05:00 GMT


Stefan Podkowinski commented on CASSANDRA-13457:

Rebased and pushed some changes for CASSANDRA-13457 ([a5be8dc|]),
CASSANDRA-14435 ([2d3549c|]),
CASSANDRA-13668 ([c26219d|])
(last one rebase only).

* Removed {{enableDiagnostics()}} in {{DiagnosticEventServiceMBean}} to enforce explicit opt-in
via cassandra yaml, as exposed data could contain security sensitive details. The {{disableDiagnostics()}}
method still exists to stop events without having to restart a node.
* {{SchemaAnnouncementEvent}} will no longer depend on {{SchemaTransformation.toString()}}
output ([a5be8dc#L|])
** The added {{toString()}} methods have been left as before, but can also be removed if anyone
minds having them
* Added threadName to returned events 
* Moved getSource() to CASSANDRA-13458, so we don't have to discuss it now

* Expose Gossiper state by calling getters instead of inspecting members directly ([a5be8dc#L|])

There are several other ways to solve this (making a snapshot of the internal state of a service
like Gossiper). 
* calling getters from the event class (as in latest version)
* have gossiper return an event or part of the event details (merged in {{toMap()}})
* pass a builder object to gossip and have gossiper add any internal state to that

I'd still prefer the first approach due to separations of concerns and to avoid introducing
leaky abstractions between services, such as Gossiper, and actual event handling and persistence.
We'd first have to agree on a more precise contract for the kind of data to expose in events.
The current {{Map<String, Serializable>}} take is probably already too ambiguous, but
I don't have any better ideas for that, without opening the discussion again on how to persist
and remotely access events in general.

> Diag. Events: Add base classes
> ------------------------------
>                 Key: CASSANDRA-13457
>                 URL:
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Core, Observability
>            Reporter: Stefan Podkowinski
>            Assignee: Stefan Podkowinski
>            Priority: Major
> Base ticket for adding classes that will allow you to implement and subscribe to events.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message