Re: [Ntp] Negative leap-second?

Daniel Franke <dfoxfranke@gmail.com> Tue, 02 August 2022 23:19 UTC

Return-Path: <dfoxfranke@gmail.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3452C14F744 for <ntp@ietfa.amsl.com>; Tue, 2 Aug 2022 16:19:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ELMpVwDvz548 for <ntp@ietfa.amsl.com>; Tue, 2 Aug 2022 16:19:17 -0700 (PDT)
Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8067BC14F740 for <ntp@ietf.org>; Tue, 2 Aug 2022 16:19:17 -0700 (PDT)
Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-10ec41637b3so10780396fac.4 for <ntp@ietf.org>; Tue, 02 Aug 2022 16:19:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KMAnkh80a+sTnfPBy541QgFV6vQu1IP7zN63otQghE0=; b=Tmk+ljfr3/0TEqxT63UnucuJOgkRPB8Ft3NHfKqknYQ7GmQQBhekjRRmFzScfIDXOs 1UfPKoIoYsaCEVMx/UwdZK+QJjY/tM+oqA4JWS4kGbJApttPhqmXghhscYRcIWh1S9MV 6EokleB8CweQNV5fIfTEUwGDWi3F1Pwd2HRUL1swBptqo7ISvE5wYs+3R1GmdLuwWoTo UtluIcJ6qV+iaVSOpPlcJAn2tixJogvjCkvx5GWsndkb70jgdheHDI9ZubnpdSkuu7fI IEDpsegMFtZAu6S1YX6j6bV5y7BcO6jkv+bxi/uZoKZPiIKTaX8P1LX8w51q7OzOLs9D g4Hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KMAnkh80a+sTnfPBy541QgFV6vQu1IP7zN63otQghE0=; b=jy8U4QZt8cvtCDUClmKk+w+M50Iimzn1q+b3g8yBZ/mUXSEvqoR8YJlbdZXrF2lbmT PBngyilu/yk/7QkRASXyFMM87EONk8As0vOjb/UZCJM46sJllPiwjphSmimVoqSkRIZZ kuhd2lcntTJsdlU7ce5WtfWEEgGeklO4D0zH5nO9AiZka/rTyS0Aire1F72Br5rkhbf9 J4u5rsgDxtUGnSZQ+QQNMf7dJ9MYLpzPw+5kAjDNoEOqsIMcTGoe0IysgjLCtm+v4VVm RhGPYViV0GRpYBZP5E3hic/l5Zmxu16YEq+ZO/ifVJe4dg9rwaFZgXX+dXE2gb8UZPwv +ZAA==
X-Gm-Message-State: ACgBeo2mE9Uu5w1Xds7VZk9Z4CMPhWSi2VsckapoPnV47tBuV0lDREPl 1dqGOQgZhbdL3NQE1KU06XtBpgCxaxKELhhiusWZIyxg
X-Google-Smtp-Source: AA6agR5hTnDv1fNoELaGQcOiY/8sssjxtLQmOA2yhMDFxaP0I6/H6/Xk8FSJIOK6MQFsgCmElNfh2UTqpISxbLYByqQ=
X-Received: by 2002:a05:6870:f149:b0:dd:f3b0:986d with SMTP id l9-20020a056870f14900b000ddf3b0986dmr742143oac.148.1659482356249; Tue, 02 Aug 2022 16:19:16 -0700 (PDT)
MIME-Version: 1.0
References: <b023985d-76c3-c6b9-3b5b-f10b3cabd2f5@pdmconsulting.net>
In-Reply-To: <b023985d-76c3-c6b9-3b5b-f10b3cabd2f5@pdmconsulting.net>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Tue, 02 Aug 2022 19:19:04 -0400
Message-ID: <CAJm83bAZgW=xgkO8BAW8HFTsSkGfdQKjkdQnfkyNWRAHdVTB3w@mail.gmail.com>
To: Danny Mayer <mayer@pdmconsulting.net>
Cc: NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000005af65005e54a58eb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/nd5X6RCqNJQvHjWXh4tAcMpQcLA>
Subject: Re: [Ntp] Negative leap-second?
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Aug 2022 23:19:21 -0000

I think predictions of a negative leap second are very premature, but I
have fewer worries about a negative one than about a positive one. I've
reviewed quite a lot of leap second handling code and never encountered any
that gets the positive case right but the negative case wrong; programmers
clued into the issue at all and generally clued in enough to know that
negative ones are a possibility. What makes me *less* worried about
negative leap seconds (rather than just not-much-more worried) is their
effect on leap-second-naive code: they make POSIX time jump forward rather
than backward. Lots of code out there wrongly assumes that POSIX time can
never jump backward. Code that assumes it can never jump forward would get
broken every time someone every time someone suspends their laptop or
pauses their VM or just puts their OS scheduler under a lot of load.

On Tue, Aug 2, 2022, 19:06 Danny Mayer <mayer@pdmconsulting.net> wrote:

> Apparently the earth's rotation is speeding up:
> https://www.timeanddate.com/news/astronomy/shortest-day-2022
>
> If we have to subtract a leap-second I think we will see failures, since
> this is rarely if ever tested.
>
> Danny
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>