Hide
original bugid: #6578
When www1 inserts a cookie, this newly inserted cookie is not spotted by www2, because nodeRemoteChange is not implemented in Cookies.java Since www2 relies on a cache (which is never flushed) the cache is never cleaned and www2 will always return -1 when asked to produce a mmbase-number for this cookie.
Since our database has a unique-constraint on de cookie-table, www2 cannot insert a cookie with the new id, produces an Exception and returns -1.. ad infinitum
Solution:
/**
* remote change on a cookie object detected
*/
public boolean nodeRemoteChanged(String machine,String number,String builder,String ctype) {
super.nodeRemoteChanged(machine,number,builder,ctype);
return(nodeChanged(machine,number,builder,ctype));
}
Added in 1.7 and head
Show
original bugid: #6578
When www1 inserts a cookie, this newly inserted cookie is not spotted by www2, because nodeRemoteChange is not implemented in Cookies.java Since www2 relies on a cache (which is never flushed) the cache is never cleaned and www2 will always return -1 when asked to produce a mmbase-number for this cookie.
Since our database has a unique-constraint on de cookie-table, www2 cannot insert a cookie with the new id, produces an Exception and returns -1.. ad infinitum
Solution:
/**
* remote change on a cookie object detected
*/
public boolean nodeRemoteChanged(String machine,String number,String builder,String ctype) {
super.nodeRemoteChanged(machine,number,builder,ctype);
return(nodeChanged(machine,number,builder,ctype));
}
Added in 1.7 and head