JAVA-444: Add process information to UUID LSB#521
JAVA-444: Add process information to UUID LSB#521pmaedel wants to merge 1 commit intoapache:2.1from CupSoftware:java444
Conversation
|
Hi @pmaedel, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. Sincerely, |
|
Thank you @pmaedel for signing the Contribution License Agreement. Cheers, |
|
Yes, I agree that we need to address this. Since using getRuntimeMXBean is not an "official" way to get the PID, I'd like to add the following:
@pmaedel, do you have time to take a look at this? |
|
Well there is no single official way to get the PID, up until Java 9 |
|
C* uses Sigar to get the PID, amongst other things. That works well for them because Cassandra is a standalone program, they just need to include all Sigar files in the binary distribution and it's easy to reference them. In our case it's a bit more complicated because the driver uses Maven for dependencies. Sigar is present in Maven central, but apparently it was deployed by a third party and I see a number of problems with it:
Long story short, I think Sigar is too complicated for the driver, the getRuntimeMXBean solution should be good enough for most cases, provided we take the few precautions I outlined in my previous message. |
|
@olim7t Thank you for elaborating. I agree with your reasoning and will look into the proposed adjustments asap. |
|
Closing in favor of #593. |
Local temporals are converted into their local representation using the session timezone. [closes apache#521] Signed-off-by: Mark Paluch <mpaluch@vmware.com>
Java-444
For relevant discussion see also respective ticket for C*: CASSANDRA-7925