flightstats / hub

fault tolerant, highly available service for data storage and distribution
http://www.flightstats.com
MIT License
103 stars 35 forks source link

500 Error getting earliest from BOTH #1009

Closed moulliet closed 6 years ago

moulliet commented 6 years ago

This occurs when: 1 - A Single channel is switched to BOTH storage 2 - A GET request for an item outside of Spoke 3 - The item does not exist in S3 BATCH

WARN 2018-01-04 19:16:46,234 [qtp145664926-27028] com.flightstats.hub.filter.GeneralExceptionMapper - exception java.lang.NullPointerException: null at com.flightstats.hub.model.Content.copy(Content.java:194) at com.flightstats.hub.dao.aws.ClusterContentService.getFromS3BatchAndStoreInReadCache(ClusterContentService.java:161) at com.flightstats.hub.dao.aws.ClusterContentService.get(ClusterContentService.java:149) at com.flightstats.hub.dao.ChannelService.get(ChannelService.java:254) at com.flightstats.hub.channel.ChannelContentResource.getItem(ChannelContentResource.java:251)