Opened 5 years ago

Last modified 5 years ago

#5036 new defect

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

Reported by: wambacher Owned by: brett@…
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 5 years ago.
replication-lag crash log

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by wambacher

replication-lag crash log

comment:1 Changed 5 years ago by wambacher

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

regards

walter

Last edited 5 years ago by wambacher (previous) (diff)
Note: See TracTickets for help on using tickets.