add partition number in train and merge message