Opened 6 years ago

Last modified 6 years ago

#5036 new defect

osmosis --read-replication-lag crashes when lag < 61 seconds

Reported by: wambacher Owned by: bretth
Priority: trivial Milestone:
Component: osmosis Version:
Keywords: read-replication-lag Cc:

Description

hi, i'm using osmosis to update my planet-database with diff-files. at the end of my script i run osmosis -q --read-replication-lag humanReadable=yes workingDirectory=. to get the actual lag.

It's crashing when the lag is less than 61 Seconds. See Log.

The fix is quite simple: in ReplicationLagReader?.java change

                                // just some seconds
				System.out.println(
					new MessageFormat("{0} second(s)").format(lag)
				);

to

                                // just some seconds
                                Object[] args = {lag};
				System.out.println(
					new MessageFormat("{0} second(s)").format(args)
				);

sorry, no patch and no git. never done that.

Attachments (1)

replication-lag-crash.log (1.7 KB) - added by wambacher 6 years ago.
replication-lag crash log

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by wambacher

Attachment: replication-lag-crash.log added

replication-lag crash log

comment:1 Changed 6 years ago by wambacher

btw: if the lag is less then 61 seconds, is's allways 60 or zero - does that make sense?

regard walter

Version 0, edited 6 years ago by wambacher (next)
Note: See TracTickets for help on using tickets.