You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/12/09 19:58:52 UTC

[GitHub] [cassandra] smiklosovic commented on a change in pull request #1357: CASSANDRA-17142: Limit the maximum hints size per host

smiklosovic commented on a change in pull request #1357:
URL: https://github.com/apache/cassandra/pull/1357#discussion_r766111305



##########
File path: test/unit/org/apache/cassandra/net/WriteCallbackInfoTest.java
##########
@@ -32,19 +34,35 @@
 import org.apache.cassandra.locator.InetAddressAndPort;
 import org.apache.cassandra.schema.MockSchema;
 import org.apache.cassandra.schema.TableMetadata;
+import org.apache.cassandra.service.StorageService;
 import org.apache.cassandra.service.paxos.Commit;
 import org.apache.cassandra.utils.ByteBufferUtil;
 
 import static org.apache.cassandra.locator.ReplicaUtils.full;
 
 public class WriteCallbackInfoTest
 {
+    private InetAddressAndPort testEp;
+
     @BeforeClass
     public static void initDD()
     {
         DatabaseDescriptor.daemonInitialization();
     }
 
+    @Before
+    public void setup() throws Exception
+    {
+        testEp = InetAddressAndPort.getByName("192.168.1.1");
+        StorageService.instance.getTokenMetadata().updateHostId(UUID.randomUUID(), testEp);

Review comment:
       nice one




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org