Skip to content

STORM-2934 - fix startup ClassNotFoundException when missing RocksDB jar#2546

Merged
asfgit merged 1 commit intoapache:masterfrom
agresch:agresch_classnotfound
Feb 7, 2018
Merged

STORM-2934 - fix startup ClassNotFoundException when missing RocksDB jar#2546
asfgit merged 1 commit intoapache:masterfrom
agresch:agresch_classnotfound

Conversation

@agresch
Copy link
Copy Markdown
Contributor

@agresch agresch commented Feb 5, 2018

Currently, only Nimbus uses STORM_METRIC_STORE_CLASS.

If the RocksDB jar is missing on Daemons other than Nimbus, they should be able to startup successfully.

If the jar is missing on Nimbus, the metricStore will fail to initialize, and an ERROR will be logged. Nimbus will still be able to run; it just ignores using the metricStore.

@Ethanlm
Copy link
Copy Markdown
Contributor

Ethanlm commented Feb 5, 2018

The dependency rocksdbjni.jar is present in lib/ directory after packaging so there shouldn't be exceptions during nimbus daemon startup. But changing from isImplementationOfClass to isString makes sense to me. It's just like what we do for SUPERVISOR_BLOBSTORE and NIMBUS_BLOBSTORE

Copy link
Copy Markdown
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

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

Looks great. Minor comment.

@NotNull
@isImplementationOfClass(implementsClass = MetricStore.class)
@isString
//@isImplementationOfClass(implementsClass = MetricStore.class)
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.

minor: Let's remove this line then. I think below explanation is enough.

@agresch
Copy link
Copy Markdown
Contributor Author

agresch commented Feb 6, 2018

removed comment

Copy link
Copy Markdown
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

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

+1
Please squash commits into one with having JIRA title & summary as commit title. PR title looks suitable to commit title.

@agresch agresch force-pushed the agresch_classnotfound branch from ba01c5c to 30d81a5 Compare February 7, 2018 14:18
@agresch
Copy link
Copy Markdown
Contributor Author

agresch commented Feb 7, 2018

squashed

Copy link
Copy Markdown
Contributor

@revans2 revans2 left a comment

Choose a reason for hiding this comment

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

+1

@asfgit asfgit merged commit 30d81a5 into apache:master Feb 7, 2018
asfgit pushed a commit that referenced this pull request Feb 7, 2018
 into STORM-2934

STORM-2934: fix startup ClassNotFoundException when missing RocksDB jar

This closes #2546
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.

5 participants