[opensuse-buildservice] lost sync with server
Hello. I tried my own instances based on current branch 2.3 and instances from openSUSE:Tools:unstable -- the behavior is the same: - have no problems with connection to openSUSE.org instance - in case if I connect instances to each other, I see endlessly repeated loop in slave OBS instance scheduler log: lost sync with server, was at N next: N There 'N' is some number from lastevent. Did somebody faced to this problem? -- Best Regards, Denis Pynkin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Friday 16 March 2012 00:10:20 Denis Pynkin wrote:
- in case if I connect instances to each other, I see endlessly repeated loop in slave OBS instance scheduler log: lost sync with server, was at N next: N
found the reason:
[PATCH] Fixed POST /lastevents looped request.
Signed-off-by: Denis Pynkin
Am Samstag, 17. März 2012, 16:36:02 schrieb Denis Pynkin:
On Friday 16 March 2012 00:10:20 Denis Pynkin wrote:
- in case if I connect instances to each other, I see endlessly repeated loop in slave OBS instance scheduler log: lost sync with server, was at N next: N
found the reason:
[PATCH] Fixed POST /lastevents looped request.
I do not see how your patch makes a difference. Could you please debug it a bit deeper and explain exactly what got lost where ? Or, in best case, write a test case for the api. There is already one for the inter- connect. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Monday 19 March 2012 15:03:33 Adrian Schröter wrote:
I do not see how your patch makes a difference. Could you please debug it a bit deeper and explain exactly what got lost where ?
The problem is in get/post methods. With newer POST method all parameters from http-request body are ignored and backend always receives only "/lastevents" string cutted by api without any additional parameters. So backend always answer 'lost sync with server' to slave OBS instance. The problem disappeared if 'pass_to_backend' is called without parameter 'path'. I am not sure if my fix is done in right way but it works. -- Best Regards, Denis Pynkin Senior software developer EPAM Systems Minsk office, Belarus GMT+2 (Standard) / GMT+3 (Daylight) Office phone: +375 (17) 389-0100 Office fax: +375 (17) 268-6699 Mobile phone: +375 (29) 134-0065 E-mail: Denis_Pynkin@epam.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am Montag, 19. März 2012, 17:26:57 schrieb Denis Pynkin:
On Monday 19 March 2012 15:03:33 Adrian Schröter wrote:
I do not see how your patch makes a difference. Could you please debug it a bit deeper and explain exactly what got lost where ?
The problem is in get/post methods. With newer POST method all parameters from http-request body are ignored and backend always receives only "/lastevents" string cutted by api without any additional parameters. So backend always answer 'lost sync with server' to slave OBS instance. The problem disappeared if 'pass_to_backend' is called without parameter 'path'. I am not sure if my fix is done in right way but it works.
k, I found it. current 2.3/master branch contains a fix and test case. New packages will come these days. (api.opensuse.org was not affected due to an optimization trick in our login proxy). bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Denis Pynkin