Skip to content

Instantly share code, notes, and snippets.

[TestNG] Running:
/Users/gene/Library/Caches/IdeaIC2018.2/temp-testng-customsuite.xml
514
-317827579904
1889785610240
Asia/Aden
Asia/Aden total 0 avg 0.00 max 0
America/Cuiaba
America/Cuiaba total 97 avg 0.19 max 1
Africa/Nairobi
@haozhun
haozhun / JdkBasedDateTimeZone.java
Last active May 16, 2022 16:04
Use JVM zone rules in ZoneInfoProvider in Joda
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • "Fix current_time timezone offset" - looks good with comments
    • I would like to see see stack representation of Time (wo TZ) changed.
      • findepi commented: "I though this way about TIME WITH TIME ZONE (but ultimately decided not to, to avoid even more chaos). What representation would you like to see for TIME?"
      • my opinion: "08:00:00 should always be represented by
    • Add comment to explain the stack representation of these types. I think the class level javadoc for TimeType and TimeWithTimeZoneType is a good place. I don't know how to explain this with English unambiguously and concisely. I'll probably go with examples. In my opinion, a table will really help. For example, for TimeType, this table answers all my questions about the legacy representation. But if you think additional line will help, feel free to add them.
/* The table below describes what a stack value represents in legacy representation.
/* Note that the table below is correct regardless of session start time
/* (i.e. wheth
[frc03 ~]$ which hive
~/apache-hive-1.2.1-bin/bin/hive
[frc03 ~]$ hive
hive> select current_timestamp();
OK
2018-04-04 14:51:31.889
Time taken: 1.202 seconds, Fetched: 1 row(s)
hive> select current_timestamp() - interval '2880' hour;
OK
2017-12-05 13:51:34.923
server zone +05:45
client1 (insert/read) zone -07:00
client2 (read) zone -04:00
ORC RCBinary RCText Text
Insert 06:00:00 06:00:00 06:00:00 06:00:00
Read 1 (same zone as insert) 18:45:00 06:00:00 18:45:00 18:45:00
Read 2 (different zone) 18:45:00 09:00:00 18:45:00 18:45:00
diff --git a/http-server/src/test/java/io/airlift/http/server/TestHttpServerCipher.java b/http-server/src/test/java/io/airlift/http/server/TestHttpServerCipher.java
index 60b8e2c5..df1d6e13 100644
--- a/http-server/src/test/java/io/airlift/http/server/TestHttpServerCipher.java
+++ b/http-server/src/test/java/io/airlift/http/server/TestHttpServerCipher.java
@@ -104,8 +104,7 @@ public class TestHttpServerCipher
public void testIncludedCipher()
throws Exception
{
- HttpServerConfig config = createHttpServerConfig()
- .setHttpsIncludedCipherSuites(CIPHER_1 + "," + CIPHER_2);
cat stats | jq '
def walk_filter_key(f):
. as $in |
if type == "object" then
reduce keys[] as $key (
{};
. +
if ($key | f) then
{ ($key): ( $in[$key] ) }
elif ($in[$key] | type) == "object" then
bigint
bigint
bigint
varchar
varchar
bigint
bigint
bigint
bigint
bigint
[INFO] io.airlift:jaxrs-testing:jar:0.147-SNAPSHOT
[INFO] +- io.airlift:http-client:jar:0.147-SNAPSHOT:compile
[INFO] | +- org.eclipse.jetty:jetty-client:jar:9.3.13.M0:compile
[INFO] | +- org.eclipse.jetty:jetty-io:jar:9.3.13.M0:compile
[INFO] | +- org.eclipse.jetty:jetty-util:jar:9.3.13.M0:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.3.13.M0:compile
[INFO] | +- org.eclipse.jetty.http2:http2-client:jar:9.3.13.M0:compile
[INFO] | | +- org.eclipse.jetty.http2:http2-common:jar:9.3.13.M0:compile
[INFO] | | | \- org.eclipse.jetty.http2:http2-hpack:jar:9.3.13.M0:compile
[INFO] | | \- org.eclipse.jetty:jetty-alpn-client:jar:9.3.13.M0:compile
ro rw wo
non-volatile 3722 33431 4316
non-volatile padded 3709 7536 3805
volatile 3678 110380 4323
volatile padded 3674 22162 3782
volatile contended 3626 17782 3512
atomic 3590 17305 3538
atomic array 4157 18852 4124
(ns per 1000 read)
(1-2 writes for non-volatile)