Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
0.20.0
-
None
-
None
-
None
Description
To test that services shut down cleanly, I need to know the port that the namenode brings up an info server on, which means that its assigned port value needs to be exported from the namesystem.
I can see two ways to do this, and wish some recommendations of the best approach
1. extract the port value when the FSNameSystem comes up, and add it to that classes Conf; add a method to get that Conf so that its state can be read.
2. save the port value to a member variable in FSNameSystem and provide a public method to get at it.
My preference is for #1, as it is consistent with how the NameNode saves its port value, and doesn't change any APIs.