Skip to content

Fix cassandra instrumentation to use a daemon thread#1422

Merged
tylerbenson merged 1 commit into
masterfrom
tyler/cassandra-thread
May 4, 2020
Merged

Fix cassandra instrumentation to use a daemon thread#1422
tylerbenson merged 1 commit into
masterfrom
tyler/cassandra-thread

Conversation

@tylerbenson
Copy link
Copy Markdown
Contributor

This should not prevent application shutdown.

@tylerbenson tylerbenson requested a review from a team as a code owner May 1, 2020 19:14
public class TracingSession implements Session {

private final ExecutorService executorService = Executors.newCachedThreadPool();
private static final ExecutorService EXECUTOR_SERVICE =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to shut this down when the application terminates?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

well, won't that happen automatically since the thread is daemon now?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, I was thinking of that as more of an insurance policy for some kind graceful shut down routine we would plug in to. Seems fine though.

@tylerbenson tylerbenson merged commit 9891b02 into master May 4, 2020
@tylerbenson tylerbenson deleted the tyler/cassandra-thread branch May 4, 2020 14:40
@github-actions github-actions Bot added this to the 0.51.0 milestone May 4, 2020
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.

2 participants