You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournaledEditsCache.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ class JournaledEditsCache {
79
79
privatestaticfinallongINVALID_TXN_ID = -1;
80
80
81
81
/** The capacity, in bytes, of this cache. */
82
-
privatefinalintcapacity;
82
+
privatefinallongcapacity;
83
83
84
84
/**
85
85
* Read/write lock pair wrapped in AutoCloseable; these refer to the same
@@ -117,7 +117,7 @@ class JournaledEditsCache {
117
117
*/
118
118
privatelonginitialTxnId;
119
119
/** The current total size of all buffers in this cache. */
120
-
privateinttotalSize;
120
+
privatelongtotalSize;
121
121
122
122
// ** End lock-protected fields **
123
123
@@ -128,8 +128,8 @@ class JournaledEditsCache {
128
128
String.format("Cache config %s is set at %f, it should be a positive float value, " +
129
129
"less than 1.0. The recommended value is less than 0.9.",
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournaledEditsCache.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ public void testCacheSizeConfigs() {
0 commit comments