In your picture of the Smit Rotterdam, it's a protective tube filled with oil. Typical mount.
Sometimes the anodes are covered with non-water repellent grease to prevent the paint from sticking when the antifouling is applied. The grease is then removed or left alone once in the water.
On this picture, it is also possible that the painted anodes are replaced later after painting, as on the rudder, paint touching up is then done at the welds once the new nodes are installed.
There is of course an inspection of the hull by the technical director in charge of the work, the chief mate and the chief engineer before putting the dock in the water
Classic oil circuit for lubrication and sealing of a stern tube, with the protection tube, it's the same.
If the seals on the propeller side break, the oil leaks into the sea water, and it is urgent to remedy this leak, which is not rare. This can be caused by a cable or fishing line being wrapped between the shaft and the propeller, or a piece of hawser.
This has happened to me several times in my career.
Usually a diver is brought in to remove the line and see what damage has been done.
Either it is possible to ballast the ship sufficiently on the nose in order to get the shaft line out of the water and replace the defective fitting with a new one. This is very rarely possible.
Or it is not possible, and the leakage is not too great, the contaminated and ineffective oil is drained off with seawater and replaced with a very special oil of density near 1 which is miscible with seawater, but very expensive and allows effective lubrication of the bearings. This means that the next technical stop of the ship in dry dock can be awaited with peace of mind.
Hydrox oil :
https://vickers-oil.com/wp-content/uplo ... -Rev-6.pdf
The third and most expensive solution is to immobilise the vessel and put it in dry dock with the consequent delay towards a free dry dock and the loss of commercial exploitation.
In the most serious case I have experienced, we had to continue operations on one engine and one shaft line for a month, while the dry dock was freed up, and the new mechanical seal was manufactured in Japan, then flown to the West Indies on the other side of the world. It is not very comfortable to sail in this way on a 110 meter tanker.
In this case we spent 3 weeks in dry dock, the propeller shaft chair had moved, which involved removing the shaft line by uncoupling it from the engine gearbox, laser aligning the chair bearing by machining the chair with a portable lathe to fit a new, well aligned bearing. A big job for the specialists.
Note that it is much easier to let a moorings line run on ships that have 2 or 4 shaft lines than one, the propellers are then in line with the stern manoeuvre. "Beware of Propellers" !
For this reason we avoid using the propellers on the quay side once the lines are sent to the quay, but this is not always possible, due to weather conditions, current, etc.
Ecologic aspect of the leak:
https://www.maritime-executive.com/corp ... productive