Closed jan-gerling closed 4 years ago
Great! I was sure this could happen, but couldn't think of a case. I'll isolate the case and fix the bug.
Indeed, this is because RMiner finds a refactoring in a newly introduced class. I refactored the code so that we treat this expected case. Now, if we see this exception again, it will be in a different case (which we should then debug).
@mauricioaniche can we close this issue?
Yes. Just ran here in a repo, and now, instead of the exceptions, I get a nice log line (and no errors).
test 2020-03-20 12:40:52 INFO RefactoringAnalyzer:78 Refactoring in a newly introduced file, which we skip: src/main/java/me/prettyprint/cassandra/model/thrift/ThriftSubSliceQuery.java, commit = CommitMetaData{commit=f8ad7a5aa29b297d3f6281a4d061f8dd9da0da4e, commitDate=java.util.GregorianCalendar[time=1284823145000,areFieldsSet=false,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2010,MONTH=8,WEEK_OF_YEAR=37,WEEK_OF_MONTH=3,DAY_OF_MONTH=18,DAY_OF_YEAR=261,DAY_OF_WEEK=7,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=5,HOUR_OF_DAY=17,MINUTE=19,SECOND=5,MILLISECOND=0,ZONE_OFFSET=3600000,DST_OFFSET=3600000], commitMessage=Refactor: Extract interface from RangeSlicesQuery, RangeSubSlicesQuery, SuperSlicesQuery, SubSliceQuery and SuperSliceQuery and move them to the api package, commitUrl=@local/repos/hector/f8ad7a5aa29b297d3f6281a4d061f8dd9da0da4e, parentCommit='2d842732e442b87b60edace58ae93a0e628e4486'}, refactoring = Extract Interface me.prettyprint.hector.api.query.SubSliceQuery from classes [me.prettyprint.cassandra.model.thrift.ThriftSubSliceQuery]
In the sixth stress test (#95 ), I found many instances in which we try to read non-existing files.
Examples