View Issue Details

IDProjectCategoryView StatusLast Update
0004272SymmetricDSBugpublic2020-02-14 17:44
Reporterpmarzullo Assigned Topmarzullo  
Status closedResolutionfixed 
Product Version3.10.9 
Target Version3.10.10Fixed in Version3.10.10 
Summary0004272: 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


There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.10 946eeeb8

2020-02-04 14:08:35

Philip Marzullo

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

Issue History

Date Modified Username Field Change
2020-02-04 19:02 pmarzullo New Issue
2020-02-04 19:02 pmarzullo Status new => assigned
2020-02-04 19:02 pmarzullo Assigned To => pmarzullo
2020-02-04 19:02 pmarzullo Tag Attached: conflict manager
2020-02-04 19:10 pmarzullo Status assigned => resolved
2020-02-04 19:10 pmarzullo Resolution open => fixed
2020-02-04 19:10 pmarzullo Fixed in Version => 3.10.10
2020-02-04 20:00 Changeset attached => SymmetricDS 3.10 946eeeb8
2020-02-14 17:44 elong Status resolved => closed