View Issue Details

IDProjectCategoryView StatusLast Update
0004273SymmetricDSBugpublic2020-02-14 17:45
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.11.4 
Target Version3.11.5Fixed in Version3.11.5 
Summary0004273: FormatUtils parseTimestampWithTimezone interprets fractional seconds incorrectly
DescriptionBug in Java version 8:
Parsing less than 9 digits in the fractional seconds when parsing timestamp with timezone assumes that the number is absolute instead of truncated.

For example, 2020-02-04 11:59:17.524978 is interpreted as 2020-02-04 11:59:17.000524978, when it should be interpreted as 2020-02-04 11:59:17.524978000.

This breaks conflict resolution when using USE_TIMESTAMP and NEWER_WINS.
Steps To Reproduce1. Cause conflict, using resolution type of USE_TIMESTAMP and NEWER_WINS, where the timestamp values are within the same second.
2. The fractional seconds with the most digits specified wins, even if the other timestamp is greater than the one with the most digits.
Tagsconflict manager

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.11 6a2948c5

2020-02-04 14:09:26

Philip Marzullo

Details Diff
0004273: FormatUtils parseTimestampWithTimezone interprets fractional
seconds incorrectly
Affected Issues
0004273
mod - symmetric-util/src/main/java/org/jumpmind/util/FormatUtils.java Diff File

Issue History

Date Modified Username Field Change
2020-02-04 19:03 pmarzullo New Issue
2020-02-04 19:03 pmarzullo Status new => assigned
2020-02-04 19:03 pmarzullo Assigned To => pmarzullo
2020-02-04 19:03 pmarzullo Tag Attached: conflict manager
2020-02-04 19:09 pmarzullo Status assigned => resolved
2020-02-04 19:09 pmarzullo Resolution open => fixed
2020-02-04 19:09 pmarzullo Fixed in Version => 3.11.5
2020-02-04 20:00 Changeset attached => SymmetricDS 3.11 6a2948c5
2020-02-14 17:45 elong Status resolved => closed