ZBLOG

The Fault Tolerant Naming Service does not provide support for BindingIterators. With the use of redundancy between a pair of naming servers, there is no way to guarantee that the context structure being iterated on would remain consistent, so the...

The Fault Tolerant Naming Service (FTNS) has some limitations compared to the regular CosNaming service. One of these limitations is that FTNS does not support BindingIterators. This means that you cannot iterate over the bindings in a naming context using an iterator.

The reason for this limitation is that, due to redundancy between a pair of naming servers, it is not guaranteed that the context structure being iterated on would remain consistent. Therefore, to ensure consistency, users are required to provide a sufficiently large value for the how_many parameter when invoking the list operation. This allows the FTNS to return all bindings in a single call without needing an iterator. If the how_many parameter is too small, the FTNS will throw a CORBA::NO_IMPLEMENT exception.

Another important point is that the FTNS implementation does not include any form of garbage collection for orphaned naming contexts. It is the responsibility of clients to clean up after themselves and avoid leaking server resources. During shutdown of the Naming Server, all resources, including orphaned contexts, are released.

In summary, with FTNS, you need to provide a sufficiently large how_many value when listing bindings to ensure completeness without relying on iterators. Additionally, it’s crucial for clients to properly manage and clean up their naming contexts to avoid resource leaks in the server.


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=15648

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?