https://github.com/voldemort/voldemort
Revision cd3b9e01144a085deaf7d37959dc7e46c8c94d5a authored by Arunachalam Thirupathi on 23 December 2015, 20:14:54 UTC, committed by Arunachalam Thirupathi on 23 December 2015, 20:14:54 UTC
1) Stores JMX are registered by JmxService class.
2) Previously ReadOnlyStorageConfiguration registered the same metrics
by prepending the NodeId. As Part of the commit

https://github.com/voldemort/voldemort/commit/2aec46a1edfbb6ab1eac4529d59ceb13f51e9fec#diff-005b79e324515c9e1045a61d0aee6d07

I fixed it and removed the NodeId. But I did not realize that this
caused the name collission and overwriting.

[18:50:45,445 voldemort.server.jmx.JmxService] WARN Overwriting mbean
voldemort.store.readonly:type=test2 [main]
[18:50:45,447 voldemort.server.jmx.JmxService] WARN Overwriting mbean
voldemort.store.readonly:type=test1 [main]

Now ReadOnlyStorageConfiguration does not register any JMX Metric at
all. Used the JConsole to verify that it is the same object registered
under two different names. Now the duplicate one is gone and the
warnings on the shutdown of Read Only server will be gone as well.
1 parent bc38518
History
Tip revision: cd3b9e01144a085deaf7d37959dc7e46c8c94d5a authored by Arunachalam Thirupathi on 23 December 2015, 20:14:54 UTC
Fix RO JMX register/Unregister
Tip revision: cd3b9e0
File Mode Size
.settings
bin
clients
config
contrib
docs
example
gradle
private-lib
src
test
voldemort-contrib
.gitignore -rw-r--r-- 242 bytes
CONTRIBUTORS -rw-r--r-- 659 bytes
LICENSE -rw-r--r-- 11.1 KB
NOTES -rw-r--r-- 2.5 KB
NOTICE -rw-r--r-- 8.1 KB
README.md -rw-r--r-- 4.4 KB
build.gradle -rw-r--r-- 20.1 KB
build.xml -rw-r--r-- 1.7 KB
gradle.properties -rw-r--r-- 1.1 KB
gradlew -rwxr-xr-x 5.0 KB
gradlew.bat -rw-r--r-- 2.3 KB
release_notes.txt -rw-r--r-- 47.8 KB
settings.gradle -rw-r--r-- 149 bytes
tomcat-tasks.properties -rw-r--r-- 420 bytes
web.xml -rw-r--r-- 1.1 KB

README.md

back to top