Skip to content

Commit eb3e34c

Browse files
committed
IGNITE-28408 Remove fileFormatVer from handler
1 parent 493a145 commit eb3e34c

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

modules/core/src/main/java/org/apache/ignite/internal/processors/performancestatistics/FilePerformanceStatisticsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ else if (ver != LEGACY_FILE_FORMAT_VERSION_1)
252252
FILE_FORMAT_VERSION + ']');
253253

254254
for (PerformanceStatisticsHandler hnd : curHnd)
255-
hnd.version(nodeId, ver, ignVer);
255+
hnd.version(nodeId, ignVer);
256256

257257
return true;
258258
}

modules/core/src/main/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@
3131
public interface PerformanceStatisticsHandler {
3232
/**
3333
* @param nodeId Node id.
34-
* @param fileFormatVer Performance statistics file format version.
3534
* @param ignVer Ignite version stored in file header, if present.
3635
*/
37-
default void version(UUID nodeId, short fileFormatVer, @Nullable String ignVer) {
36+
default void version(UUID nodeId, @Nullable String ignVer) {
3837
// No-op.
3938
}
4039

modules/core/src/test/java/org/apache/ignite/internal/processors/performancestatistics/ForwardReadQueryPropertyTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public void testStringForwardRead() throws Exception {
7171
Map<String, String> actualProps = new HashMap<>();
7272

7373
new FilePerformanceStatisticsReader(BUFFER_SIZE, new TestHandler() {
74-
@Override public void version(UUID nodeId, short fileFormatVer, String ignVer) {
75-
assertEquals(ForwardReadQueryPropertyTest.this.fileFormatVer, fileFormatVer);
74+
@Override public void version(UUID nodeId, String ignVer) {
7675
assertEquals(ForwardReadQueryPropertyTest.this.fileFormatVer == LEGACY_FILE_FORMAT_VERSION_1 ? null : VER_STR, ignVer);
7776
}
7877

0 commit comments

Comments
 (0)