Issue 2737: Not possible to reload a prolog rule from a plugin.
Status:  AwaitingInformation
Owner: ----
Reported by ery...@gmail.com, Jun 26, 2014

Affected Version: 2.7, 2.8

What steps will reproduce the problem?

1. Create a plugin that defines a prolog rule.
2. load the plugin 
3. unload the plugin

What is the expected output? What do you see instead?

When I load my plugin for the first time, the prolog engine loads the predicate, get's initialized with it and does not consult the plugin anymore.

That means the predicate stays there even after removing the plugin. Even worse, it does not get updated on plugin reload.
So there is no way to update the predicate to the newer version other than restarting Gerrit server.
This happens despite the fact that I am using Gerrit reload mode restart.

Please provide any additional information below.

https://groups.google.com/forum/#!topic/repo-discuss/tHUOCsvXKnQ

Jun 26, 2014
Project Member #1 David.Os...@gmail.com
What would help is a small reproducer. Can you upload an example to cookbook-plugin to demonstrate the problem?
Status: AwaitingInformation
Jul 19, 2014
#2 ery...@gmail.com
I've just added the code that helps do show this problem.

https://gerrit-review.googlesource.com/58715
May 12, 2015
#4 poojanme...@gmail.com
Did you find any solution ?