-
Notifications
You must be signed in to change notification settings - Fork 18
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
createLocator did not throw an exception #341
Comments
@hcbfmbm Can you attach the locator logs? |
@sumwale The above message is the only information we could get. We start locator by kubernets+docker, the message is the docker's logs. Because the locator start fail, there is nothing in "start_snappylocator.log". |
@hcbfmbm |
@sumwale There is no "snappylocator.log" generated. @dshirish the yaml is
|
@hcbfmbm While we could not reproduce the failure you are seeing but found few other issues with SnappyData's docker image. We'll fix those and update you. |
@ashetkar In fact, we are not sure whether the problem is from kubernet or snappydata. A error occurred during the locator creating process, but the method "createLocator" did not throw any exception. Then we could get any information about the error reason. We suggest the method "createLocator" should be added "throw exception".
Thanks a lot for your help! |
With snappy0.9, we did not start locator successfully, and get these message:
Starting Thrift server for SnappyData at address snappydata-locator-0/10.244.7.213[1527] java.lang.Exception: No available status. Either status file ".snappylocator.ser" is not readable or reading the status file timed out. at com.gemstone.gemfire.internal.cache.CacheServerLauncher.waitForRunning(CacheServerLauncher.java:1489) at com.gemstone.gemfire.internal.cache.CacheServerLauncher.start(CacheServerLauncher.java:659) at com.pivotal.gemfirexd.tools.internal.GfxdServerLauncher.run(GfxdServerLauncher.java:796) at io.snappydata.tools.LocatorLauncher.run(GfxdLauncherOverrides.scala:73) at io.snappydata.tools.LocatorLauncher$.main(GfxdLauncherOverrides.scala:90) at io.snappydata.tools.LocatorLauncher.main(GfxdLauncherOverrides.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.gemstone.gemfire.internal.GemFireUtilLauncher.invoke(GemFireUtilLauncher.java:176) at com.pivotal.gemfirexd.tools.GfxdUtilLauncher.invoke(GfxdUtilLauncher.java:257) at io.snappydata.tools.SnappyUtilLauncher.invoke(SnappyUtilLauncher.scala:91) at io.snappydata.tools.SnappyUtilLauncher$.main(SnappyUtilLauncher.scala:137) at io.snappydata.tools.SnappyUtilLauncher.main(SnappyUtilLauncher.scala)
The reason is the method "createLocator" in InternalLocator.java failed, then .snappylocator.ser is not generated, "waitForRunning" in CacheServerLauncher.java report the ".snappylocator.ser" is not readable.
But we did not known why does "createLocator" fail? The method "createLocator" did not throw exception. Does anyone help adding "throw Exeption" for method "createLocator"?
The text was updated successfully, but these errors were encountered: