I'm seeing the same thing as well. By default, the function library in the metadata is empty on acquiring
ODatabaseDocumentTx from the pool. Just checked on Orient 2.2 beta, but the problem probably exists earlier as well.
If I make an extra call such as:
odbTx.getMetadata().getFunctionLibrary().load();
then the function library finally gets populated with the function names. But this is inefficient to do every time especially in the pooling scenario.
This appears to be a bug, The function library should be populated as soon as the dbtx is acquired.