apache / apache/iotdb

[Bug] Time-Zone problems in TimeRangeIteratorTest

オープン
#12,537 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
115

説明

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

1.3.2-SNAPSHOT

### Describe the bug and provide the minimal reproduce step

The TimeRangeIteratorTest.testNaturalMonthTimeRange test is failing for me, as I am currently in a timezone Berlin/Europe which currently (16.05.2024) is at daylight-saving and hereby has a time offset of 2h and not 1h.

### What did you expect to see?

I expected the test to pass

### What did you see instead?

The test failed.

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

TimeRangeIteratorTest.testNaturalMonthTimeRange から始め、issue に記載されている Europe/Berlin タイムゾーンを使って失敗を再現します。夏時間の切り替え前後におけるテストの想定時間範囲を追跡し、その後、1時間のオフセットに依存せずにテストが通ることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。