Message-ID: From: "sehrope (@sehrope)" To: "pgjdbc/pgjdbc" Date: Mon, 11 Sep 2017 09:51:18 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #943: fix: synchronize modification of shared calendar (#921) In-Reply-To: References: List-Id: X-GitHub-Author-Login: sehrope X-GitHub-Comment-Id: 328479751 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 943 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/943#issuecomment-328479751 Content-Type: text/plain; charset=utf-8 Why is this necessary? `TimestampUtils` is local to each connection and your test is accessing the same connection from two different threads with no external synchronization. That type of non-synchronized access is likely to encounter other issues as well. Connection should not be used concurrently for query execution by multiple threads.