Skip to content

Shut down daemon threads #1247

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

Merged
merged 5 commits into from
Nov 2, 2018
Merged

Shut down daemon threads #1247

merged 5 commits into from
Nov 2, 2018

Conversation

anguillanneuf
Copy link
Member

Adding -Dexec.cleanupDaemonThreads=false in mvn exec:java fixes java.lang.IllegalThreadStateException.

Fixes #1239

Adding `-Dexec.cleanupDaemonThreads=false` in `mvn exec:java` fixes `java.lang.IllegalThreadStateException`.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 2, 2018
@@ -29,25 +29,28 @@ For more samples, see the samples in

#### Create a new topic
```
mvn exec:java -Dexec.mainClass=com.example.pubsub.CreateTopicExample -Dexec.args=my-topic
mvn exec:java -Dexec.cleanupDaemonThreads=false \
Copy link
Contributor

Choose a reason for hiding this comment

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

The exec.cleanupDaemonThreads and the exec.cleanupDaemonThreads arguments are the same every time, so we should add them to the pom.xml to avoid making our users type them out. Check out how Dane did it here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the link! I have made some changes in pom.xml accordingly.

@kurtisvg kurtisvg merged commit 099b582 into master Nov 2, 2018
@kurtisvg kurtisvg deleted the anguillanneuf-patch-2 branch November 2, 2018 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pub/Sub: java.lang.IllegalThreadStateException
3 participants