-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
Description
Hi Folks,
-
App design couchbase lite java listener is thread safe? #82 and CBL 1.4 used.
[09/25 17:48:54:097] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) GET: http://127.0.0.1:19050/data/_changes?since=15729&include_docs=true&style=main_only&timeout=240000&feed=longpoll
[09/25 17:48:54:098] [9514] Listener: authHeader is null
[09/25 17:48:54:099] [9514] Listener: Not enforcing basic auth -- allowedCredentials null or empty
[09/25 17:48:54:101] [9514] Listener: serveConnection instance :Acme.Serve.Serve$ServeConnection@14511ed
[09/25 17:48:54:102] [9514] Listener: serveConnection LiteServlet socket : Socket[address=/127.0.0.1,port=35288,localPort=19050]
_changes request goes for the 4 min wait state.
Line 399: [09/25 17:51:03:529] WhitelistPlugin url: http://127.0.0.1:19050/data/_design%2FgetHistory/_view/getHistory?key=%22tel%3A%2B919480111111%22&reduce=false&group=false
Line 403: [09/25 17:51:06:224] WhitelistPlugin url: http://127.0.0.1:19050/data/_design%2FgetHistory/_view/getHistory?key=%22tel%3A%2B919480111111%22&reduce=false&group=false
Line 409: [09/25 17:51:09:088] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342069058_meta.doc
Line 413: [09/25 17:51:10:296] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342070243_meta.doc
Line 417: [09/25 17:51:11:076] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342071040_meta.doc
Line 421: [09/25 17:51:11:994] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342071964_meta.doc
Line 425: [09/25 17:51:12:949] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342072915_meta.doc
Line 429: [09/25 17:51:13:686] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342073651_meta.doc
Line 433: [09/25 17:51:14:480] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342074434_meta.doc
Line 437: [09/25 17:51:15:441] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342075403_meta.doc
Line 441: [09/25 17:51:16:304] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342076273_meta.doc
Line 445: [09/25 17:51:17:789] WhitelistPlugin url: http://127.0.0.1:19050/data/s919888880010_ptx1506342077751_meta.doc
All the next JS REST request are queued and not processed.
[09/25 17:52:54:230] [9514] Listener: [REQUESTEND] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) GET: http://127.0.0.1:19050/data/_changes?since=15729&include_docs=true&style=main_only&timeout=240000&feed=longpoll
_changes request sent 200 ok after 4 mins.
Line 103248: [09/25 17:52:54:303] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) GET: http://127.0.0.1:19050/data/s919888880010_ptx1506341932485_s919888880004_DR.doc
Line 103290: [09/25 17:52:54:467] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506341912681_s919888880004_DR.doc
Line 103337: [09/25 17:52:54:633] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) GET: http://127.0.0.1:19050/data/s919888880004_ptx1506341932485_meta.doc
Line 103379: [09/25 17:52:54:793] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) POST: http://127.0.0.1:19050/_replicate
Line 103458: [09/25 17:52:54:963] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) POST: http://127.0.0.1:19050/_replicate
Line 103535: [09/25 17:52:55:136] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) POST: http://127.0.0.1:19050/_replicate
Line 103616: [09/25 17:52:55:307] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) POST: http://127.0.0.1:19050/_replicate
Line 103691: [09/25 17:52:55:483] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) GET: http://127.0.0.1:19050/data/_local%2Fs919888880010_UnreadHistory.doc
Line 103733: [09/25 17:52:55:615] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342069058_meta.doc
Line 103788: [09/25 17:52:55:797] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342070243_meta.doc
Line 103836: [09/25 17:52:55:989] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342071040_meta.doc
Line 103883: [09/25 17:52:56:149] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342071964_meta.doc
Line 103931: [09/25 17:52:56:310] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342072915_meta.doc
Line 103978: [09/25 17:52:56:481] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342073651_meta.doc
Line 104026: [09/25 17:52:56:681] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342074434_meta.doc
Line 104074: [09/25 17:52:56:856] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342075403_meta.doc
Line 104121: [09/25 17:52:57:035] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342076273_meta.doc
Line 104169: [09/25 17:52:57:227] [9514] Listener: [REQUEST] (Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@14511ed) PUT: http://127.0.0.1:19050/data/s919888880010_ptx1506342077751_meta.doc
Later these requests are severed.
Note: Acme.Utils.ThreadPool(1) and socket port=35288 is used to serve all requests.
@hideki please share your thoughts.. is the same socket used and thread Acme.Utils.ThreadPool(1) is issue here.?
after_changes_thread_report.txt
Thanks
Nithin